All Projects → alcat2008 → react-drag-list

alcat2008 / react-drag-list

Licence: MIT license
A simple draggable list component。

Programming Languages

typescript
32286 projects
CSS
56736 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to react-drag-list

easy-drag
easy to realize drag and drop effect
Stars: ✭ 34 (+13.33%)
Mutual labels:  drag-and-drop, draggable
vue-drag-zone
Drag Zone component for @vuejs
Stars: ✭ 127 (+323.33%)
Mutual labels:  drag-and-drop, draggable
Ngx Smooth Dnd
angular wrapper for smooth-dnd
Stars: ✭ 152 (+406.67%)
Mutual labels:  drag-and-drop, draggable
React Kanban Dnd
📋 Open source kanban board built with React
Stars: ✭ 121 (+303.33%)
Mutual labels:  drag-and-drop, draggable
react-native-dnd-board
A drag and drop Kanban board for React Native.
Stars: ✭ 41 (+36.67%)
Mutual labels:  drag-and-drop, draggable
Flutter remote control
flutter remote control
Stars: ✭ 124 (+313.33%)
Mutual labels:  drag-and-drop, draggable
React Dragtastic
A simple drag and drop library for React which uses the more stable mouseDown/mouseUp event pattern instead of the problematic HTML5 drag and drop API
Stars: ✭ 181 (+503.33%)
Mutual labels:  drag-and-drop, draggable
Lean Mean Drag And Drop
Drag&Drop Sorting and Reordering script for complex nested structures
Stars: ✭ 107 (+256.67%)
Mutual labels:  drag-and-drop, draggable
FlutterBoardView
BoardView written for the flutter framework.
Stars: ✭ 82 (+173.33%)
Mutual labels:  drag-and-drop, draggable
Draggable
The JavaScript Drag & Drop library your grandparents warned you about.
Stars: ✭ 15,671 (+52136.67%)
Mutual labels:  drag-and-drop, draggable
Svgdragtree
一个可以通过拖放 SVG 图标,来生成拥有树状结构的视图与数据的前端组件。 SDT example:
Stars: ✭ 113 (+276.67%)
Mutual labels:  drag-and-drop, draggable
vue3-smooth-dnd
Vue3 wrapper components for smooth-dnd
Stars: ✭ 92 (+206.67%)
Mutual labels:  drag-and-drop, draggable
React Smooth Dnd
react wrapper components for smooth-dnd
Stars: ✭ 1,560 (+5100%)
Mutual labels:  drag-and-drop, draggable
React Dragline
🐼Guide lines and magnetic adsorption to better align draggable elements in React.
Stars: ✭ 134 (+346.67%)
Mutual labels:  drag-and-drop, draggable
Flowy Vue
Vue Flowy makes creating flowchart or hierarchy chart functionality an easy task. Build automation software, mind mapping tools, organisation charts, or simple programming platforms in minutes by implementing the library into your project.
Stars: ✭ 107 (+256.67%)
Mutual labels:  drag-and-drop, draggable
Angular Grid Layout
Responsive grid with draggable and resizable items for Angular applications.
Stars: ✭ 163 (+443.33%)
Mutual labels:  drag-and-drop, draggable
Jquery Sortablejs
A jQuery binding for SortableJS
Stars: ✭ 94 (+213.33%)
Mutual labels:  drag-and-drop, draggable
Muuri
Infinite responsive, sortable, filterable and draggable layouts
Stars: ✭ 9,797 (+32556.67%)
Mutual labels:  drag-and-drop, draggable
React Email Editor
Drag-n-Drop Email Editor Component for React.js
Stars: ✭ 3,131 (+10336.67%)
Mutual labels:  drag-and-drop, react-component
ng2-gridstack
A gridstack component for Angular2+
Stars: ✭ 12 (-60%)
Mutual labels:  drag-and-drop, draggable

react-drag-list


React DraggableList Component

NPM version build status Test coverage gemnasium deps npm download

Development

npm install typings -g
npm install
typings install
npm start

Example

http://localhost:8000/examples/

online example: http://front-ender.me/react-drag-list/

install

react-drag-list

Usage

import React from 'react'
import ReactDragList from 'react-drag-list'

React.render(
  <ReactDragList
    dataSource={['row1', 'row2', 'row3']}
    row={(record, index) => <div>index + record</div>}
  />, container);

API

props

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 item

Test Case

npm test
npm run chrome-test

Coverage

npm run coverage

open coverage/ dir

License

react-drag-list is released under the MIT license.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].