0.1.8 • Published 7 years ago

angular-dragndrop v0.1.8

Weekly downloads
141
License
MIT
Repository
github
Last release
7 years ago

#HTML5 Drag and Drop AngularJS module

It use service to expose events to controller.

##Usage

  • npm install angular-dragndrop
  • Reference angular-dragndrop.min.js in your application as:
<script src="components/angular-dragdrop/src/angular-dragndrop.min.js"></script>
  • Resolve the dependency in the main module of your application as:
angular.module('myApp', ['angDragNDrop'])
  • Drag anything as:
<span ang-drag="true" ang-drag-data="{object}">Drag me to your place :)</span>

##Draggable directive

  • ang-drag – A custom angular attribute to make any element draggable. Value can be true or false.
  • ang-drag-data – Object, or some other value.

##Draggable handle directive

  • ang-drag-handle – A custom attribute for element who represent draggable handler inside element who need to be dragged.

##Droppable directive

  • ang-drop - A custom attribute to make any element a area for dopping draggable elements.
0.1.8

7 years ago

0.1.7

7 years ago

0.1.6

7 years ago

0.1.5

7 years ago

0.1.3

8 years ago

0.1.1

8 years ago