Home  >  Article  >  php教程  >  Yii Framework 开发教程Zii组件-Droppable示例 .

Yii Framework 开发教程Zii组件-Droppable示例 .

WBOY
WBOYOriginal
2016-06-13 10:54:06888browse

我们修改上例,添加一个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.?> 

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn