Conclusion: jQuery EasyUI Chinese API-Draggable

Source: Internet
Author: User

 

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
  1. <Div id = "dd" style = "width: 100px; height: 100px; border: 1px solid # ccc;">
  2. <Div id = "title" style = "background: # ccc;"> title </div>
  3. </Div>
JQuery code
  1. $ ('# 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

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.