* @link http://www.yiiframework.com/ * @copyright Copyright © 2008-2011 Yii Software LLC * @license http://www.yiiframework.com/license/ */ Yii::import('zii.widgets.jui.CJuiWidget'); /** * CJuiDraggable displays a draggable widget. * * CJuiDraggable encapsulates the {@link http://jqueryui.com/demos/draggable/ JUI Draggable} * plugin. * * To use this widget, you may insert the following code in a view: *
* $this->beginWidget('zii.widgets.jui.CJuiDraggable', array( * // additional javascript options for the draggable plugin * 'options'=>array( * 'scope'=>'myScope', * ), * )); * echo 'Your draggable content here'; * * $this->endWidget(); * ** * By configuring the {@link options} property, you may specify the options * that need to be passed to the JUI Draggable plugin. Please refer to * the {@link http://jqueryui.com/demos/draggable/ JUI Draggable} documentation * for possible options (name-value pairs). * * @author Sebastian Thierer