I am using Vue2 with Vuetify and I have a two dimensional grid of buttons.
<v-row>
<v-col cols="6" v-for="item in itemList" :key="item.id">
<v-btn color="black--text">
{{ item.text }}
</v-btn>
</v-col>
</v-row>
I want to use Vue.Draggable to enable drag-and-drop reordering. This is what I tried.
<v-row>
<v-col cols="6" v-for="item in itemList" :key="item.id">
<draggable v-model="itemList" group="myGroup">
<v-btn color="black--text">
{{ item.text }}
</v-btn>
</draggable>
</v-col>
</v-row>
This does not work as I would like. For one thing, when I drag any button to a new spot, the first button in the list disappears. For another, the hole left from the moved button does not fill until after the move is complete, which makes it look awkward. Additionally, the transition effects just don't look right. I also tried moving the draggable components outside of the v-row, but that makes the entire grid one draggable unit. What I would like is something that resembles the grid example here: https://sortablejs.github.io/Sortable/#grid. The code is given for the example below that, but not the grid example and I can't seem to replicate it.
I have been struggling to find information about the Sortable or Draggable packages. Is there an official documentation somewhere that I'm missing? The wiki on GitHub just has four miscellaneous articles, two of which are about a decade old and the documentation directories only have deprecated functionality. That only leaves the readme on each repo. Is that all there is? I want to make sure there's not a more robust source to reference.