1.0.11 • Published 8 years ago
react-drag-list-component v1.0.11
react-drag-list-component
Simple drag list component
Install
$ npm i react-drag-list-componentOR
$ yarn add react-drag-list-componentExample
render() {
return (
<DragList
list={[]}
update={(item, old, next) => {}}
render={(item, index) => <div key={index}>{item.name}</div>}
/>
);
}Drag list Props
| Prop Name | Description | Required | Default |
|---|---|---|---|
| list | List of elements to render | true | --- |
| placeholder | To show placeholder draged elements | false | true |
| update | Callback function after change position of element | true | --- |
| render | Callback function to render element from list | true | --- |
| handler | To show handler to draged element | false | true |
Cli-commands
Start tests:
$ yarn testOur blogs
See Meanstack.eu - voil See Meandjs - ddosdor
License
MIT
Ready to Rock&Roll, Hell Yeah!