Section 193th, jQuery easyui,draggable (drag) Component

Source: Internet
Author: User

Draggable (drag) Component

Learning Essentials:

1. Loading mode

2. List of properties

3. Event List

4. Method List

This lesson focuses on the use of the draggable (drag) component in easyui, which does not depend on other Components.

A Load mode

//class Load Mode <  id= "box"  classstyle= "width:400px;height:200px; background:red; " > Content Section </ Div >
JS Load Call $ (' #box '). draggable ();

Draggable () implements a Drag-and-drop method for an element that receives an object that is a property

Two Property List

Proxy null/string, function When using ' Clone ', clone an alternative element to Drag. If you specify a function, the override element is Customized.


Revert False/boolean is set to true, the start position is returned when dragging is stopped

The CSS pointer style when cursor move/string is dragged

DeltaX Null/number The dragged element corresponds to the current cursor position x

DeltaY Null/number The dragged element corresponds to the current cursor position y

Handle Null/selector start dragging the handle

Disabled False/boolean is set to true to stop dragging

The width of the container in which edge 0/number can be dragged

Axis null/string Setting Drag to vertical ' v ', or horizontal ' h '

Section 193th, jQuery easyui,draggable (drag) Component

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.