$ npm install @atomic-nyc/vue-draggable --save
Include the script file then install the component with
Once installed, use it in a Vue template as follows:
This div is draggable.
Images even become draggable:
Custom styling applied to the outer div of the
Custom function emitted when user clicks mouse button on the draggable component.
Custom function emitted when user moves the draggable component.
Custom function emitted when user releases mouse button from the draggable component.
handleMouseDown function is defined in
This package is compatible with Vue.js Server-Side Rendering.