CJuiSortable 显示一个列表,列表中的列表项可以通过拖放重新调整顺序,它封装了 JUI Sortable 插件。其基本用法如下: <?php Yii::app()->clientScript->registerCss('sortable', " #sortable {list-style-type: none; margin: 0; padding: 0; width: 60%;} #sortable li {margin: 2px; padding: 4px; border: 1px solid #e3e3e3;
CJuiSelectable 可以显示一个列表,列表的每个项支持 Select 事件,它封装了 JUI Selectable 插件,其基本用法如下: <?php Yii::app()->clientScript->registerCss('selectable'," #selectable {list-style-type: none; margin: 0; padding: 0; width: 60%;} #selectable li {margin: 2px; padding: 4px; border: 1px solid #e3e3e3;