jquery list Drag arrange-jquery list dragsort plug-in parameters and how to use

Source: Internet
Author: User

When writing a Web page, sometimes it may be necessary to sort the UL Li, today it is recommended to use the jquery plugin jquery list Dragsort Implementation of the list drag sorting effect.

Effect

jquery list Dragsort Drag plugin use method
$ ("ul"). Dragsort ({dragselector: "Li", Dragend:function () {}, Dragbetween:false, Placeholdertemplate: "< Li></li> "});
jquery list Dragsort List drag plug-in parameter description

Dragselector

The drag handle for the list item of elements within the CSS selector. The default value is "Li".

Dragselectorexclude

The dragselector within the element of the CSS selector does not trigger dragsort. The default value is "input, textarea, A[href]".

Dragend

The callback function that will be called after the drag is finished.

Dragbetween

Set to "true" if you want to enable multiple groups of lists to drag between selected lists. The default value is False.

Placeholdertemplate

Drag the HTML portion of the list. The default value is "<li></li>".

Scrollcontainer

The CSS selector element, as a scrolling container, such as an overflow div, is set to Automatic. The default value is window.

Scrollspeed

A number, which represents the speed at which a page drags an item, will scroll outside the container, and the higher use value is slower than the speed and lower values. If set to "0″" to disable scrolling. The default value is "5″."

jquery list Drag arrange-jquery list dragsort plug-in parameters and how to use

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.