xieziyu / angular2-draggable

Angular directive (for version >= 2.x ) that makes the DOM element draggable and resizable
https://xieziyu.github.io/angular2-draggable/
294 stars 103 forks source link

Is it possible to get information about the location of the element at the end of the drag element? #46

Open jocklei opened 6 years ago

jocklei commented 6 years ago

Can all the elements be dragged and the nearby yuan swap position(Is it possible to get information about the location of the element at the end of the drag element?)?

For example, I have two elements of "A" and "B". They are arranged according to the data "clickNumber" attribute. I want to drag and move to exchange "clickNumber" value, so that I can change location and realize it.

xieziyu commented 6 years ago

@leihg From v1.3.1, we can get information from (movingOffset) and (endOffset) emitters. Please refer to demo page for detail