jQuery plugin to sorting lists also the tree structures.
Clone or download
Latest commit aafc780 Jan 17, 2018

README.md

jquery-sortable-lists

jQuery plugin to sorting lists also the tree structures.

$('#myList').sortableLists( options );

You can sort an items of html lists by mouse. Create tree structures. Format css of all active items however you want. You can define the isAllowed callback which determines if dragged item can be inserted into another. Set the insert zone like a distance which determines if item will be inserted inside or outside of the active area, speed of autoscroll. Available is onDragStart, onChange and complete callback.

Now plugin supports also mobile devices. Link jquery-sortable-lists-mobile.js instead of jquery-sortable-lists.js.

Sortable lists also contains export functions toArray, toHierarchy, toString.

For more info look at the documentation.

Changelog is here.