More information about this topic
Reset database
 | 
Simple Droppable Object
Drag me
Drop something around here

protected/modules/UiModule/views/jui/zii_droppable.php


//some draggable object
$this->beginWidget('zii.widgets.jui.CJuiDraggable',
        array(
                'htmlOptions'=>array(
                        'style'=>'float:left;width:50px;height:50px;background:#FFEEEE;margin:10px;',
                ),
        ));
echo 'Drag me';
$this->endWidget();

//some droppable object (dropzone)
$this->beginWidget('zii.widgets.jui.CJuiDroppable', array(
        'options'=>array(
                'drop'=>'js:function( event, ui ) {alert("Something drop on me!")}', //remember put js:
        ),
        'htmlOptions'=>array(
                'style'=>'float:left;width:100px;height:100px;background:#EEFFEE;margin:10px;',
        )
));
echo 'Drop something around here';

$this->endWidget();
References
Fork me on GitHub