E
E
eugenedrvnk2019-09-19 17:40:51
JavaScript
eugenedrvnk, 2019-09-19 17:40:51

Vue nested draggable / sortable.js? How to use the plugin correctly?

There is a similar example of implementing a nested list with drag n drop.

In the code, the script has the id "template-nested" which is also specified as the template for the nested-draggable component.
How can all this be displayed correctly within regular .vue files?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
H
HeTpe3B, 2019-09-19
@eugenedrvnk

In the nested draggable, draw the children as you would for a regular draggable. Pass nested there again
. Do you need a tree with dnd? Have a look at this https://github.com/holiber/sl-vue-tree

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question