vue-draggable-grid
VueJS Components to move data inside a grid via drag&drop.
9,036
| Install | |
|---|---|
npm install vue-draggable-grid |
|
| Latest Version: | 1.0.2 |
| Vue: | 3 |
| Older releases: | 2 |
| License: | Apache-2.0 |
| Last Updated: | Aug 27, 2025 |
| Links: | npm |
Maintainer: natureshadow
Vue Draggable Grid
A library for Vue3 which allows drag&drop functionality in a grid context.
Installation
npm install vue-draggable-grid
Usage
Include the library in your project:
import draggableGrid from "vue-draggable-grid";
Vue.use(draggableGrid);
// Now create your app as usual
An example usage could look like this:
<template>
<drag-grid v-model="items" :cols="4" :rows="4">
<template #item="item">
{{ item.data.text }}
</template>
</drag-grid>
</template>
<script>
export default {
name: "YourComponent",
data() {
return {
items: [
{
x: 1,
y: 3,
w: 2,
h: 2,
key: "item1",
data: { text: "Hello world 1" },
},
{
x: 2,
y: 2,
w: 2,
h: 1,
key: "item2",
data: { text: "Hello world 2" },
},
{
x: 3,
y: 1,
w: 1,
h: 1,
key: "item3",
data: { text: "Hello world 3" },
},
],
};
},
};
</script>
For more examples visit the examples folder, or read the documentation.
Repository: https://edugit.org/AlekSIS/libs/vue-draggable-grid/
Built by Julian Leucker.
Related Packages
@nocyoung/vue-draggable
Vue Drag and Drop component which can be used for PC and H5 without any dependen...
305
Version History
| Version | Released | Vue | License |
|---|---|---|---|
| 1.0.2 | ^3.5.18 | Apache-2.0 | |
| 1.0.1 | ^3.5.18 | Apache-2.0 | |
| 1.0.0 | ^3.5.18 | Apache-2.0 | |
| 0.4.1 | ^2.7.14 | Apache-2.0 | |
| 0.4.0 | ^2.7.14 | Apache-2.0 | |
| 0.3.0 | ^2.7.14 | Apache-2.0 | |
| 0.2.0 | ^2.7.14 | Apache-2.0 | |
| 0.1.0 | ^2.7.14 | Apache-2.0 |
Pre-releases (1)
| Version | Released | Vue | License |
|---|---|---|---|
| 0.1.0-post0 | ^2.7.14 | Apache-2.0 |