question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to use vuedraggable with data table in vuetify

See original GitHub issue

First 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:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:13 (1 by maintainers)

github_iconTop GitHub Comments

9reactions
abhaywawalecommented, Jul 20, 2018

@indusbull @varadekd The part II with the Data Table functionality is released. Please check it here. drag-n-drop in Vuetify — Part II

5reactions
mike-seekwellcommented, Jan 21, 2020

@abhaywawale did you figure out how to drag and drop columns?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found