vue-smooth-dnd icon indicating copy to clipboard operation
vue-smooth-dnd copied to clipboard

Multi drag?

Open chengmanxiang opened this issue 5 years ago • 1 comments

https://react-beautiful-dnd.netlify.com/?selectedKind=Multi%20drag&selectedStory=pattern&full=0&addons=0&stories=1&panelRight=0

thanks

chengmanxiang avatar Feb 01 '19 02:02 chengmanxiang

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.

davestewart avatar Feb 01 '19 18:02 davestewart