A Directive for dragging element accross the DOM inside the view port.
-
npm install Run
npm install --save vue-drag-element-directive
-
With Modules
// ES6
import Drag from 'vue-drag-element-directive'
directives: {
Drag
}
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>