1.0.2 • Published 5 years ago

vue-drag-element-directive v1.0.2

Weekly downloads
154
License
ISC
Repository
github
Last release
5 years ago

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>

License

wtfpl