Home

Awesome

Drag and Drop for AngularJS (with Animation)

Build Status npm jsDelivr Hits npm version Bower version


Implementing jQueryUI Drag and Drop functionality in AngularJS is easier than ever with this wrapper for jQueryUI draggable/droppable components.

v1.0.13

  1. Allow to animate back on beforeDrop-cancel event if jqyouioptions.revertDuration is set
  2. Pass right context in case of CtrlAs syntax
  3. Add vertical sortable example in demo/dnd-insertInline.html

How to Use

<script src="components/angular-dragdrop/src/angular-dragdrop.min.js"></script>
angular.module('myApp', ['ngDragDrop'])
<span data-drag="true" jqyoui-draggable>So you think you can drag</span>

Angular Draggable options

Angular Droppable options

How to Contribute

Demo

Demo is here

v1.0.12

  1. Supports insertInline option to simulate sortable functionality.
  2. Relies on ngAnimate for sortable animation from left/right.
  3. Checkout the demo in demo/dnd-insertInline.html

v1.0.9 - breaking change

  1. Draggable and Droppable will not be deep copied by default unlike previous versions. Use deepCopy option if prototypical inheritance is not required.
  2. Callbacks will not be executed forcefully within the context of scope which requires an extra digest loop for each event (start, stop, over, out, etc), especially drag that fires many times and running a digest loop is performance intensive in such scenario. Call scope.$apply() within callback, if needed.

v1.0.5 - breaking change

Do not pass evaluated expressions in callbacks. For example,

Before:

<div jqyoui-draggable="{onStart:'startCallback({{item}})'}">{{item.title}}</div>

After:

<div jqyoui-draggable="{onStart:'startCallback(item)'}">{{item.title}}</div>

Support

If you're having problems with using the project, use the support forum at CodersClan.

<a href="http://codersclan.net/forum/index.php?repo_id=17"><img src="http://www.codersclan.net/graphics/getSupport_blue_big.png" width="160"></a>