React Sortable
Render drag/drop sortable collections using React Dnd
Provides a thin wrapper around React Dnd so you don't have to worry about the inner workings of that lib. Allows for live sorting with a callback on 'drop' with the newly sorted collection
Usage
( See example/app.jsx for another working example )
var React = Sortable = classnames = ; var Template = React
TODO
- Right now sortable collection wraps items in a
<ul>
. It'd be nice to make this customizable - Sortable "type" is random, meaning you can't drag/drop onto other containers. It'd be nice to support dragging between different sortables
- Support a customizable "handle" that a user can drag within template so the whole item doesn't have to be draggable