Home > Backend Development > PHP Tutorial > Yii Framework Development Tutorial Zii Component-Droppable Example ._PHP Tutorial

Yii Framework Development Tutorial Zii Component-Droppable Example ._PHP Tutorial

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-07-14 10:08:03
Original
940 people have browsed it

We modify the above example and add a Droppable area. When a UI component is dragged and dropped into this area, "Dropped" is displayed.


[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.?>

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/477825.htmlTechArticleWe modify the above example and add a Droppable area. When a UI component is dragged and dropped into this area, Dropped is displayed. [php] 01.?php $this-beginWidget(zii.widgets.jui.CJuiDroppable, array( 02....
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template