PHP Development Framework Yii Framework Tutorial (a) Zii component-draggable sample

Source: Internet
Author: User
Tags yii

Cjuidraggable enables drag-and-drop functionality for other UI components that contain it, encapsulating JUI draggable plug-ins.

To enable a UI component to be dragged and dropped, the following are the basic uses of cjuidraggable:

<?php $this->beginwidget ('

zii.widgets.jui.CJuiDraggable ', Array ('
    options ' =>array (
                ' Cursor ' => ' move ',
                ),
                ' Htmloptions ' =>array (
                    ' style ' => ' width:200px;
                     height:200px; padding:5px; Border:none solid #e3e3e3;
                     Background: #0 '
                    ))
            ;
Anything between Beginwidget and Endwidget is draggable.
Echo ' endwidget ();
? >

All content contained between Beginwidget and Endwidget can support drag-and-drop, and the Htmloptions section defines the size of UI components that need to support drag-and-drop. This example uses a drag-and-drop image.

See a full set of tutorials: http://www.bianceng.cn/webkf/PHP/201301/35265.htm

This example downloads: Http://www.imobilebbs.com/download/yii/JuiDraggableDemo.zip

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.