Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to have drag and drop functionality with AngularJS without relying on jQuery UI?

I've seen http://codef0rmer.github.io/angular-dragdrop/#/list, but this requires jQuery and jQuery UI. If possible, I'd like to not have those dependencies.

like image 741
Shamoon Avatar asked Oct 09 '13 15:10

Shamoon


2 Answers

The AngularJS documentation SURPRISINGLY has an example of this on the Compiler page. Check it out. You may have to add to it, but it is a great simple example of how to write a directive to get the draggable functionality.

like image 131
Zack Argyle Avatar answered Nov 15 '22 11:11

Zack Argyle


Yes, ngDraggable is designed to support drag-drop functionality without dependency of jQuery UI.

I did some spike and it worked well on PC browsers, however, it still has some UI issues on mobile so far. Here is a live demo.

like image 22
aqingsao Avatar answered Nov 15 '22 11:11

aqingsao