minop1205 / react-dnd-treeview

A draggable / droppable React-based treeview component. You can use render props to create each node freely.
MIT License
516 stars 69 forks source link

Drag multiple nodes #215

Open piszczu4 opened 9 months ago

piszczu4 commented 9 months ago

I noticed that even when we select multiple nodes, then during the dragging only 'clicked' node is dragged to the destination node. Are there plans to support dragging of multiple nodes?

minop1205 commented 9 months ago

@piszczu4

It is not provided as a library feature. This is because the dependent library (react-dnd) does not support drag-and-drop operation of multiple nodes.

Therefore, it is necessary to create a pseudo function in the application implementation. Please refer to the following sample.

https://minop1205.github.io/react-dnd-treeview/?path=/docs/advanced-examples-multiple-drag--multiple-drag-story