bevacqua / dragula

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

elements replacement #567

Closed pociej closed 4 years ago

pociej commented 6 years ago

lets say i have elements 1,2,3,4,5. What i can do with dragula now is to move one element after/ before another, but i would need ability to replace elements in one move. Like 1,2,3,4,5 - > 1,4,3,2,5 just by drag 2 and drop it over 4. I know that maybe it is somewhere in docs and i missed it. You asked to make all support request like this on slack. But your slack seems to be dead.

vullankib commented 6 years ago

Just wanted to hear from others/Moderators if this functionality won't affect the actual use of the application going forward. Because there will be a scenario of merging the elements that would be needed when drag one element over other. Please comment further on the option between Merging v/s swapping.

pociej commented 6 years ago

@vullankib Im not sure if get what you mean by mergin here. I asked about simple swap as described in original issue description. i would like to be able to do permutation 1,2,3,4,5 - > 1,4,3,2,5 i one move by drag element 2 and drop it over element 4.