ng-drag-drop-list
Ng Drag Drop List is an Angular library for drag and drop elements on list.
Installation
npm
Install with npm install ng-drag-drop-list
yarn
Install with yarn add ng-drag-drop-list
Usage
Add DragDropListModule
to your list of module imports:
;
Create a list in your component (of colors for example)
;
Use dragDropList
directive on the drag elements (TWO-WAY binding):
{{color}}
For specific dragging trigger:
TRIGER {{color}}
Api
Input | Type | Default |
---|---|---|
dragDropList | Array | - |
trigger | HTMLElement | nativeElement |
duration | number | 300 |
Output | Emit |
---|---|
dragDropListChange | Array |