vue-drag-element-directive
v1.0.2
Published
Directive for dragging element inside the view port
Downloads
6
Maintainers
Readme
vue-drag-element-directive
A Directive for dragging element accross the DOM inside the view port.
Installation
npm install Run
npm install --save vue-drag-element-directive
With Modules
// ES6
import Drag from 'vue-drag-element-directive'
directives: {
Drag
}
Usage
There's nothing you need to do in JavaScript except for installation. To use the plugin, simply use the v-drag
directive.
<div v-drag>
drag me
</div>