bevacqua / dragula

:ok_hand: Drag and drop so simple it hurts
https://bevacqua.github.io/dragula/
MIT License
21.89k stars 1.97k forks source link

ng2-dragula sort multiple items #546

Closed inv-senchuthomas closed 3 years ago

inv-senchuthomas commented 6 years ago

I have developed an angular5 application using the ng2-dragula. In which user can drag and drop questions from question container to myfavourite-container. He can drag and change the sort order of myfavourite-container.It is working properly in my application. My use case is to sort multiple items selected using cntrl-key pressing. For example if I have a list of 1,2,3,4,5 and when I selected 2,4 using ctrl-key press like we selecting files in windows systems and dropped into the position of 1 then the resultant list to be like 2,4,1,3,5. I have made the code to select multiple items to the array. So I need to drag and drop drop multiple items and change the sort order

@bevacqua