Can any directive make element draggable or droppable in DOM using javaScript?

41 views
Skip to first unread message

Honey Goyal

unread,
Apr 22, 2014, 6:19:53 AM4/22/14
to ang...@googlegroups.com
Hi,

I have used many directives available there. Is there any directive , so we can make element draggable or droppable in DOM using javaScript?

And also can we get both dragged and dropped element as a parameter in dropCallBack function 'onDrop' event?

Thanks,
Honey Goyal

Kamal

unread,
Apr 22, 2014, 6:50:44 AM4/22/14
to ang...@googlegroups.com
Goyal,

I found this https://github.com/fatlinesofcode/ngDraggable, it looks like it does what you are looking for (you can get the dom element from the `$event` which is the dom event instance). I have not used this, so can say any thing about it. Hope this helps.

Regards,
Kamal

Honey Goyal

unread,
Apr 22, 2014, 7:02:17 AM4/22/14
to ang...@googlegroups.com
Thanks Kamal for quick reponse, Unfortunately we can't make DOM element draggable or droppable in it.
I found this https://github.com/danielzen/angular-jquery-ui, it worked like just like i need it. Here is jsfiddle http://jsfiddle.net/IgorMinar/NyJcd/11/ .


--
You received this message because you are subscribed to a topic in the Google Groups "AngularJS" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/angular/QC8SZb_A3N8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to angular+u...@googlegroups.com.
To post to this group, send email to ang...@googlegroups.com.
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages