drag list ui component for react
npm install react-drag-listReact DraggableList Component
[![NPM version][npm-image]][npm-url]
[![build status][travis-image]][travis-url]
[![Test coverage][coveralls-image]][coveralls-url]
[![gemnasium deps][gemnasium-image]][gemnasium-url]
[![npm download][download-image]][download-url]
[npm-image]: http://img.shields.io/npm/v/react-drag-list.svg?style=flat-square
[npm-url]: http://npmjs.org/package/react-drag-list
[travis-image]: https://img.shields.io/travis/alcat2008/react-drag-list.svg?style=flat-square
[travis-url]: https://travis-ci.org/alcat2008/react-drag-list
[coveralls-image]: https://img.shields.io/coveralls/alcat2008/react-drag-list.svg?style=flat-square
[coveralls-url]: https://coveralls.io/r/alcat2008/react-drag-list?branch=master
[gemnasium-image]: http://img.shields.io/gemnasium/alcat2008/react-drag-list.svg?style=flat-square
[gemnasium-url]: https://gemnasium.com/alcat2008/react-drag-list
[node-image]: https://img.shields.io/badge/node.js-%3E=_0.10-green.svg?style=flat-square
[node-url]: http://nodejs.org/download/
[download-image]: https://img.shields.io/npm/dm/react-drag-list.svg?style=flat-square
[download-url]: https://npmjs.org/package/react-drag-list
```
npm install typings -g
npm install
typings install
npm start
http://localhost:8000/examples/
online example: http://front-ender.me/react-drag-list/

`js
import React from 'react'
import ReactDragList from 'react-drag-list'
React.render(
row={(record, index) =>
API
$3
Name | Type | Default | Description
------------------ | ------------------- | ------- | ------------------------------------------------------------------------------
prefixCls | string | rc-draggable-list | The draggable list dom node's prefixCls
className | string | | additional className for draggable list
style | object | | Root style for draggable list element. Such as width, height
rowClassName | string | | additional className for draggable list row item
dataSource | any[] | | data record array to be rendered
rowKey | string | | key of row to be rendered
row | function(record, index): ReactNode | | row data to be rendered
disabled | boolean | false | disables the drag if set to true
handles | boolean | false | show drag handles
animation | string | 150 | ms, animation speed moving items when sorting,
0 — without animation
onUpdate | function(event: Object) | | called when sorting list changed
ghostClass | string | | additional className for the drop placeholder
chosenClass | string | | additional className for the chosen item
dragClass | string | | additional className for the dragging itemTest Case
`
npm test
npm run chrome-test
`Coverage
`
npm run coverage
``open coverage/ dir
react-drag-list is released under the MIT license.