UI Sortable component, see the demo.
$ component install yields/sortable
update
(e), emitted when sort changes happen.start
(e), emitted when the drag starts.drop
(e), emitted when drop happens.
Initialize Sortable with el
.
Ignore items matching the given selector
.
Set the handle to selector
.
Bind internal events.
Unbind internal events.
Connect with Sortable
instance, the method returns the given Sortable
.
one = new Sortable(query('.one'));
two = new Sortable(query('.two'));
// one <> two
one
.connect(two)
.connect(one);
// one > two
one.connect(two);
MIT