angular-dragdrop icon indicating copy to clipboard operation
angular-dragdrop copied to clipboard

How can i get the coordinates of div while dragging

Open diptangshu1991 opened this issue 8 years ago • 1 comments

I need to get the x,y coordinates of dragged item. please help

diptangshu1991 avatar Jul 02 '17 07:07 diptangshu1991

use the 'onDrag' event (you can send an id of your element to it), for example: on html: 'onDrag: ctrl.myFunc(my_elem_id)'

inside your code/controller:

myFunc = function(event, ui, id){
console.log(id)
}

shanytc avatar Jul 26 '18 14:07 shanytc