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