react-dnd icon indicating copy to clipboard operation
react-dnd copied to clipboard

Moving Columns Example

Open Adzz opened this issue 5 years ago • 3 comments
trafficstars

Is there any chance I could humbly request an example in the documentation for when you move a card between two columns. There are comments alluding to it in the docs like this line:

Do this if the original component may be unmounted during the dragging and later “resurrected” with a different parent. For example, when moving a card across the lists in a Kanban board,

But I can't for the life of me figure out how to drop it like its hot where i need it and remove it from whence it came.

Adzz avatar May 26 '20 15:05 Adzz

I had to do it manually for reactware library, you can take a look at the example to get an idea as to what I did, but i'd recommend to use something like react-beatufull-dnd if you just want lists.

Kivylius avatar Jun 19 '20 17:06 Kivylius

Bumping this. I love the flexibility of React DND (e.g. more than just moving items in a list!), but it would be nice if we could get a little more insight into a dynamic, multi-column drag and drop scenario.

Currently tinkering with this, but it's not immediately apparent to me how, or if, this is even possible without creating more issues than it solves. Love this package, just looking for a bit more insight into a very common use-case.

joehdodd avatar Apr 01 '23 15:04 joehdodd

Any updates on this topic? This is a really nice project, but the documentation is missing some examples.

acomanescu avatar Jul 19 '23 17:07 acomanescu