alcat2008 / react-drag-list Goto Github PK
View Code? Open in Web Editor NEWA simple draggable list component。
Home Page: http://front-ender.me/react-drag-list/
License: MIT License
A simple draggable list component。
Home Page: http://front-ender.me/react-drag-list/
License: MIT License
When I update the value from the disabled
prop, the component does not react to its change, unless it's unmounted and mounted again. Meaning that if I set disabled to true
using a button in the UI for example, the drag and drop functionality is still working.
Here's a example of the bug with the latest version of react-drag-list
and a demo I got from the docs: https://codesandbox.io/s/laughing-dew-4gghz
Currently onUpdate callback function we got the only old index and the new index of dragged list item there should a callback for drag end just like onUpdate that will return me an updated dataSource.
这种ts写的组件是怎么发布的?直接用tsc编译一下吗
I tried integrated it with my simple to do list (see repo here: https://github.com/enacodev/todolist) but has issues in rendering the array once its dragged, or if an item is removed. See this screenshot: https://www.screencast.com/t/UqcZp6kYhpZ
I want to disable only single row and want to make move disable.
How disable draggend ?
I wish to contain the draggable item to it's parent.
It currently can move around everywhere on the screen.
I checked the sample demo for examples as well.
And how would it react ?
I need that kind of draggable list, and this one seems perfect, but I need to know if I can use it in a scrollable div, and if it will automatically scroll when I drag a item to the end of the div ?
I tried but it does not seems to be working, is there a special way to declare it or should I code it myself ?
Changing the source list (adding/removing) messes up the display of the list.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.