Standalone drag and drop sorting using HTML5.
Works recursivley on child elements.
var sorter = new Html5Sorter({
container: '.myContainer',
selector: 'li',
onDrop: function(elem, completeTree) {
// Do some stuff ...
}
});
- onDragStart
- onDragEnd
- onDragOver
- onDragLeave
- onDrop
Classes for styling drag and drag-over states:
- dragging
- drag-over