Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drag and drop multiple items #50

Closed
ljammala opened this issue May 1, 2015 · 8 comments
Closed

Drag and drop multiple items #50

ljammala opened this issue May 1, 2015 · 8 comments
Labels

Comments

@ljammala
Copy link

ljammala commented May 1, 2015

Can I select some items and then drag and drop selected items(multiple)?

@bevacqua
Copy link
Owner

bevacqua commented May 1, 2015

Currently you can do this

  • if they're all children of the same container
  • using the API, when an item is dragged you drag a bunch of other items

@akisiel1
Copy link

Hi!
Can you provide any example of usage API for drag and droping multiple elements?

@ozzieperez
Copy link

Hi @akisiel1, were you able to get anywhere with this? I'm looking to do the same thing.

@akisiel1
Copy link

akisiel1 commented Apr 26, 2018

Hi @ozzieperez! Unfortunately, I didn't find the solution :(

@ozzieperez
Copy link

ozzieperez commented Apr 26, 2018

Thanks @akisiel1 . I hammered at it for some time yesterday and was able to get something going. It's definitely hacky, but here's my code if you or anyone else could use it.

My requirements were to be able to multiselect from the left container to the right container. I used the 'Shift + click' event on the items to multiselect, and the floating preview also reflects the selected items.

https://jsfiddle.net/jw5e4c3c/9/

@akisiel1
Copy link

Thanks @ozzieperez 😃

@fermdp
Copy link

fermdp commented Jun 14, 2018

This is wonderful, but can make adding more options? Left to right and right to left in the same example? and multiple selection in the left to left? for example select item 1,3 and 4 and put just down of the item 8?

@forvy
Copy link

forvy commented Mar 29, 2019

Found this: https://stackoverflow.com/a/55409817/3654837 not perfect but good enough I think.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants