Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can i get the coordinates of div while dragging #330

Open
diptangshu1991 opened this issue Jul 2, 2017 · 1 comment
Open

How can i get the coordinates of div while dragging #330

diptangshu1991 opened this issue Jul 2, 2017 · 1 comment

Comments

@diptangshu1991
Copy link

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

@shanytc
Copy link

shanytc commented Jul 26, 2018

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)
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants