Draggable
A wrapper component around Vue Draggable that makes any list of items sortable via drag and drop.
Source code
Click to see the source code for this component on GitHub. Feel free to copy it and adjust it for your own use.
Installation
npx ui-thing@latest add draggable
Usage
Simple
Two Lists
Clone
Custom Clone
Clone on Meta key
Press the Meta key (Command on Mac, Windows key on Windows) while dragging to clone an item.
Items will be moved
Handle
Table
| Drag handle | Name | Country | Phone | Table actions |
|---|
Drag and drop to reorder rows