* @link http://www.yiiframework.com/ * @copyright 2008-2013 Yii Software LLC * @license http://www.yiiframework.com/license/ */ Yii::import('zii.widgets.jui.CJuiWidget'); /** * CJuiSortable makes selected elements sortable by dragging with the mouse. * * CJuiSortable encapsulates the {@link http://jqueryui.com/sortable/ JUI Sortable} * plugin. * * To use this widget, you may insert the following code in a view: *
* $this->widget('zii.widgets.jui.CJuiSortable',array(
* 'items'=>array(
* 'id1'=>'Item 1',
* 'id2'=>'Item 2',
* 'id3'=>'Item 3',
* ),
* // additional javascript options for the JUI Sortable plugin
* 'options'=>array(
* 'delay'=>'300',
* ),
* ));
*
*
* By configuring the {@link options} property, you may specify the options
* that need to be passed to the JUI Sortable plugin. Please refer to
* the {@link http://api.jqueryui.com/sortable/ JUI Sortable API} documentation
* for possible options (name-value pairs) and
* {@link http://jqueryui.com/sortable/ JUI Sortable page} for general
* description and demo.
*
* If you are using JavaScript expressions anywhere in the code, please wrap it
* with {@link CJavaScriptExpression} and Yii will use it as code.
*
* @author Sebastian Thierer