React-dnd: Have an example in the docs that illustrates dragging multiple elements.

Created on 30 Nov 2016  ·  10Comments  ·  Source: react-dnd/react-dnd

While the thread https://github.com/gaearon/react-dnd/issues/14 started by @gaearon might not be implemented anytime soon, I feel like a workaround approach can be illustrated in the docs if someone wants to use react-dnd for dragging multiple elements.

wontfix

Most helpful comment

@pavel06081991 @dangreenisrael @ishantoberoi @GreGGus

Sorry for the late response. The code example for multi-select drag and drop is here - https://github.com/nikhilbaradwaj/ReactMultiDnD

You can test the app here - https://nikhilbaradwaj.github.io/ReactMultiDnD/

All 10 comments

If this is something worth doing, I would love to write the example and submit a PR.

@nikhilbaradwaj If you have a working example of selecting multiple elements for drag n drop, can you please share it?

@nikhilbaradwaj That would be amazing

@nikhilbaradwaj

@nikhilbaradwaj, Yeah, we would appreciate it

@pavel06081991 @dangreenisrael @ishantoberoi @GreGGus

Sorry for the late response. The code example for multi-select drag and drop is here - https://github.com/nikhilbaradwaj/ReactMultiDnD

You can test the app here - https://nikhilbaradwaj.github.io/ReactMultiDnD/

@nikhilbaradwaj Thank You.

If anyone's interested, I implemented a multiple drag / grid view: https://codesandbox.io/s/9j897k0mwy.
You can use cmd/ctrl and shift keys to select multiple items, then drag them around the grid and insert them anywhere.

This is still a demo, but I might package it in a component later.

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

If anyone's interested, I implemented a multiple drag / grid view: https://codesandbox.io/s/9j897k0mwy.
You can use cmd/ctrl and shift keys to select multiple items, then drag them around the grid and insert them anywhere.

_This is still a demo, but I might package it in a component later._

Any progress on this? :D

Was this page helpful?
0 / 5 - 0 ratings