Mutable List
A draggable, droppable and deletable list component for React. It is still being actively developed, and bugs are still being found, so issues on github are welcome. Documentation is generated by react-docgen and can be found in the docs folder.
Installation
To install simply
npm install react-mutable-list
Functionality is exposed in three different ways:
- es6/jsx files in src/
- es5 files with commonJS exports in lib/
- a prepackaged version with the entire react library under
dist/list.js
Example
This example shows how the user might handle the onReorder and onRemove callbacks. The controller is responsible for managing the content passed into the list, and it uses the onReorder and onRemove callbacks to handle the corresponding events from the list.
Component { superprops thisstate = items: 'hello' 'world' } { this } { this } { return <List onReorder= this> thisstateitems </List> }
For a more involved example, see demo.jsx