Unable to use vuedraggable with data table in vuetify
See original GitHub issueFirst check https://github.com/SortableJS/Vue.Draggable/blob/master/CONTRIBUTING.md
Step by step scenario
Below is my implementation
<v-data-table hide-actions :headers="header" :items="items" class="elevation-1" item-key="key">
<draggable v-model="items">
<template slot="items" slot-scope="props">
<tr>
<td v-html="props.index + 1"></td>
<td v-html="props.item.name"></td>
<td>
<v-tooltip bottom v-if="props.item.isMethod">
<v-icon >details</v-icon>
</v-tooltip>
</td>
</tr>
</template>
<template slot="expand" slot-scope="props">
<span v-if="testscript._id" >
<v-data-table :items="testscript.steps" hide-actions style="margin-left:25px">
<template slot="headers" slot-scope="props">
<tr>
<td>Serial</td>
<td>Step Name</td>
</tr>
</template>
<template slot="items" slot-scope="props">
<td v-html="props.index"></td>
<td v-html="props.item.name"></td>
</template>
</v-data-table>
</span>
<span v-else>
<component style="width:100%;" :user="testsession.user" :basicDetail="props.item" :recording="true" :codeKey="props.item.codeKey" :xpathKey="props.item.xpathKey" :userData="userDataForStep" :step="currentStepFromNerve" :element="currentElementFromNerve" :language="language" :theme="theme" :readOnly="readOnly" :is="componentSelected" />
</span>
</template>
</draggable>
</v-data-table>
Entries are not shown in the tbale. Can someone please tell me how can I implement draggable in vuetify datatbale.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:13 (1 by maintainers)
Top Results From Across the Web
Can Vue.Draggable be used with Vuetify v-data-table and ...
I'd like to add draggability to my v-data-table rows and have got this working using Vue.Draggable. However the draggable component requires ...
Read more >How to use vue-draggable (or Sortable JS) in a v-data-table ...
I'm using SortableJS with Nuxt. The shortest solution I found was to register a directive with Vue.directive : import Vue from 'vue' import...
Read more >Vue table draggable. You can style the component ... - Unoeste
This time around I'm using Vue 2, Vuex, Axios & Vue Draggable. Vue Data Table Component. Table 10-1 Plug-In and Related Source File...
Read more >vuedraggable - npm
Start using vuedraggable in your project by running `npm i ... Reuse existing UI library components (such as vuetify, element, or vue ...
Read more >Draggable table row with VueJS, Vuetify and SortableJS
This is the case with vuedraggable when using div or ul/li tags, but is not with this example using v-data-table. dev-to-uploads.s3.amazonaws.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@indusbull @varadekd The part II with the Data Table functionality is released. Please check it here. drag-n-drop in Vuetify — Part II
@abhaywawale did you figure out how to drag and drop columns?