0.1.1 • Published 5 years ago
@monocode/draggable v0.1.1
#draggable Makes any HTML element draggable. ###Usage Install package
$ npm install @monocode/daggable
Add draggable module as a dependency
import angular from 'angular';
import {DraggableModule} from '@monocode/draggable';
angular.module('my-app', [DraggableModule]);
You can use draggable
directive on any HTML element
<div id="comment" draggable></div>
<img src="..." draggable />
<input type="text" draggable />
Important! Adding
draggable
directive to an HTML element will automatically change element'sposition
tofixed
.When an element is dragged, its
click
events will not be triggered.