Many people prefer JQuery for front-end development. However, many people choose ExtJS for background management systems, especially enterprise management systems, such as WEB invoicing systems, because ExtJS provides a lot of UI interfaces and is very friendly. Now JQuery also has a good UI plug-in --JQuery EasyUISo far, no appropriate Chinese API documentation has been found, so I will summarize some of them and share them with you.
Draggable instructions
HTML code
- <Div id = "dd" style = "width: 100px; height: 100px; border: 1px solid # ccc;">
- <Div id = "title" style = "background: # ccc;"> title </div>
- </Div>
JQuery code
- $ ('# Dd'). draggable (options );
It seems nothing special, just like jquery's official ui ......
Event Description
Name |
Parameters |
Description |
OnStartDrag |
E |
Trigger when an object starts dragging |
OnDrag |
E |
Triggered when the object is dragged. |
OnStopDrag |
E |
Trigger when an object is dragged to stop |
|
Features
Name |
Type |
Description |
Default Value |
Handle |
Selector |
Drag target |
Null |
Disabled |
Boolean |
The object cannot be dragged. false indicates that the object can be dragged. |
False |
Edge |
Number |
The greater the value, the slower the drag. You can feel it yourself] |
0 |
Axis |
String |
Defines the movement on the axis. The value of the drag element can be "v" or "h". When it is set to null, it will move to the direction of "v" and "h. |
Null |
|
View the demo [due to limited time, the demo is basically done, and all the parameters are not done] official documentation