Giter Site home page Giter Site logo

alcat2008 / react-drag-list Goto Github PK

View Code? Open in Web Editor NEW
29.0 29.0 6.0 715 KB

A simple draggable list component。

Home Page: http://front-ender.me/react-drag-list/

License: MIT License

CSS 8.32% JavaScript 6.27% TypeScript 85.41%
drag-and-drop draggable list react-component

react-drag-list's People

Contributors

alcat2008 avatar fbialek avatar radicand avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

react-drag-list's Issues

Get updated dataSource after drag end.

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编译一下吗

Can I use it in a scrollable div ?

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 list

Changing the source list (adding/removing) messes up the display of the list.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.