ng-sortable icon indicating copy to clipboard operation
ng-sortable copied to clipboard

make it to swap

Open AlbertHambardzumyan opened this issue 9 years ago • 5 comments

I've already spent a lot of time, but anyway I couldn't make it to swap the dragged item with the item where it dropped. Now, as I drag the item, each next one items' position changes to 'current-1'.

Need get exactly as in this example: http://htmlpreview.github.io/?https://github.com/fatlinesofcode/ngDraggable/blob/master/example-reorder.html

AlbertHambardzumyan avatar Jan 22 '16 23:01 AlbertHambardzumyan

@AlbertHambardzumyan you need this only within one bucket? i.e one sortable list.

a5hik avatar Jan 25 '16 05:01 a5hik

yes, one vertical list

albert4177 avatar Jan 25 '16 10:01 albert4177

right now this is not supported, but this can be doable. by providing an option.

a5hik avatar Feb 09 '16 19:02 a5hik

@a5hik can you give me an idea on how to achieve this? I want to swap the source and dest object index before saving.

gusreyes01 avatar Feb 24 '16 22:02 gusreyes01

+1

Lujaw avatar Apr 08 '16 01:04 Lujaw