vue.draggable.next icon indicating copy to clipboard operation
vue.draggable.next copied to clipboard

How to get @change event that includes info about moves between lists

Open woodhull opened this issue 2 years ago • 4 comments

I've got an application with multiple lists. Users can drag items between lists to move them.

I'm trying to capture an event that contains information about both the source and destination lists. :move has the information but fires just before the move completes. @change seems like it would make the most sense, but it only has information for a particular list.

I want to build a UI that includes a log of the moves between lists that someone has made. This is awkward with out an event that includes from and to information.

I realize this is likely by design for vue-draggable because each list that items can be dragged between is completely independent at the vue-level. Is it possible to access something like move where I can access the divs that things are being dragged between but where the item position has actually changed, rather than move which is just before the position of an item has changed as I understand it?

woodhull avatar Jul 25 '22 22:07 woodhull

I also do miss this

@change seems like it would make the most sense

specifically, I need to have there x,y coordinates of the dropped element, as my dropzone is not a list, but a rectangle div

seyfer avatar Jun 12 '23 11:06 seyfer

Hi @woodhull, did you get any solution for this? I am in the same situation.

frikishaan avatar May 02 '24 12:05 frikishaan

No

woodhull avatar May 02 '24 12:05 woodhull

The last update 3 years ago. Seems like this repo is dead.

seyfer avatar May 02 '24 13:05 seyfer