vue-smooth-dnd
vue-smooth-dnd copied to clipboard
Multi drag?
https://react-beautiful-dnd.netlify.com/?selectedKind=Multi%20drag&selectedStory=pattern&full=0&addons=0&stories=1&panelRight=0
thanks
This is fairly straightforward to achieve, it's just outside the bounds of the library.
If you look at the docs for the react lib, the team also chose not to include this in the core library:
- https://github.com/atlassian/react-beautiful-dnd/blob/master/docs/patterns/multi-drag.md
You just need to build an array of selected ids before the drag, do the drag, then on the drop, update all arrays.
Note that when dragging the selected source elements do not move. This is the trick! You just update the arrays after the drag is done.