我们修改上例,添加一个droppable区域,当有ui组件拖放到该区域时,显示“dropped”。
[php]
01.beginWidget('zii.widgets.jui.CJuiDroppable', array(
02. 'options'=>array(
03. 'drop'=>'js:function(event,ui){$(this).html("Dropped!")}',
04. ),
05. 'htmlOptions'=>array(
06. 'style'=>'width: 300px; height: 300px; padding:
07. 5px; border: 1px solid #e3e3e3; background: #f7f7f7',
08. ),
09. ));
10.echo 'Drop here';
11.
12.$this->endWidget();
13.?>
PHP怎么学习?PHP怎么入门?PHP在哪学?PHP怎么学才快?不用担心,这里为大家提供了PHP速学教程(入门到精通),有需要的小伙伴保存下载就能学习啦!
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号