Skip to content

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

drag_sort

=======

Features

The simplest HTML5 Drag & Drop Library

Usage

var DragSort = require('dragSort');

var watcher = DragSort.init(element, '.child_class', function(oldIndex, newIndex) {
  console.log(oldIndex);
  console.log(newIndex);
});


watcher.destroy();

Notes

  • Use need to specify sortable=true on the elements you want sortable
  • Only works properly with horizontal sorting

About

Simple HTML5 drag & drop sorting component

Resources

Stars

0 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages