Questions tagged [vuedraggable]
The vuedraggable tag has no usage guidance, but it has a tag wiki.
vuedraggable
198
questions
11
votes
2
answers
13k
views
how to use autoscroll feature vue-draggable
I'm trying to use vue-draggable (https://github.com/SortableJS/Vue.Draggable) for a large list of nested items (an organisational tree).
Since there is a lot of data, the user will need to be able ...
9
votes
2
answers
3k
views
Nuxt + Vuetify + VueDraggable - draggable tag prop, v-row, works in dev server but not after building/running for production
I'm building a Nuxt app with Vuetify buildModule setup and want to make a number of v-cols sortable via VueDraggable (in my case, I built and added a super small Nuxt plugin which binds a global ...
6
votes
1
answer
14k
views
vue-draggable not able to disable
I wrote a component that is shared throughout my application, in some places I need the dragging/sorting and some do not want it there. I pass a prop to my component called disableDraggable and based ...
5
votes
2
answers
9k
views
Can Vue.Draggable be used with Vuetify v-data-table and allow utilisation of table v-slot:item.<name>?
Vuetify v-data-table supports several types of slots: v-slot:body, v-slot:item and v-slot:item.<name>.
We have been using v-slot:item.<name> extensively, as these provides a flexible way ...
5
votes
4
answers
7k
views
SortableJS / Vue.Draggable multi-drag option not working
Recently I have discovered that the SortableJS / Vue.Draggable library (https://github.com/SortableJS/Vue.Draggable) has a new option where multi-drag can be enabled to select multiple elements from ...
5
votes
1
answer
2k
views
How to use Vue.Draggable CDN without webpack?
I’m a newbie on Vue. One of the pages (salesview) on my client’s CodeIgniter website needs to use Vue so I included it by
<script src="https://cdn.jsdelivr.net/npm/vue"></script>
and I ...
5
votes
1
answer
19k
views
Implementing Vue draggable with cards?
I am trying to implement vuedraggable with Vuetify Cards but for some reason the drag and drop doesn't work when the cards are in a single row but works when they are in a column.
Check out this ...
4
votes
3
answers
3k
views
How to keep dragging item at former position until release in vue draggable
I'm implementing a nested layers component in vue with vuedraggable.
I try to keep it close to Adobe's layers panel (for example in Illustrator).
The desired behaviour is:
While dragging an item, it ...
4
votes
1
answer
727
views
Vue3 with Draggable - Nesting list - Reactivity
I try to make drag and drop list with Draggable plugin, but depend how i assing new value in watcher from component(second code block) that's responsible of nesting it work only in one way
Codesandbox ...
4
votes
2
answers
1k
views
VueJS + Vue.Draggable + Vuex Store + Computed Variables
Is there a way to use Vue.Draggable lists with computed variables in a Vuex Store? I'm fairly new to VueJS and this is my current component setup:
// Template
<draggable class="list-group" :list="...
3
votes
2
answers
18k
views
draggable element must have an item slot
I was trying to use vuedraggable into my Notebook application and i get this error when i add the draggable component. Here is the code and the error. I would appreciate the help.
Here is the error ...
3
votes
1
answer
5k
views
Vue Draggable - How to only replace item chosen to prevent shifting all other items on grid?
Here's an example to test:
https://codesandbox.io/s/j4vn761455?file=/src/App.vue:112-116
Step 1: Drag 4 to 5. As you see, 4 and 5 switch places
Step 2: Drag 1 to 6, as you see, 1 goes where 6 was, 6 ...
3
votes
1
answer
4k
views
Is it possible to use a quasar component with vue draggable?
I've been trying to get this done for awhile, but can't seem to get it to work. I'm using the Quasar CLI, and it'd be appreciated if someone could show me an example of how to do this.
<draggable ...
3
votes
2
answers
5k
views
vuedraggable custom component setup in Nuxt3
I'm having a hard time getting vuedraggable (https://github.com/SortableJS/vue.draggable.next) to work in Nuxt 3. Here is the steps I followed so far.
npm install vuedraggable@next
Then created this ...
3
votes
1
answer
9k
views
how to get vue draggable moved item
I am using this to implement drag-drop in my vue app. Lets my array is:
lists: [
{ id: 1, name: 'Item 1' },
{ id: 2, name: 'Item 2' },
{ id: 3, name: 'Item 3' },
]
I want to get the ...