vue-draggable-nested-tree icon indicating copy to clipboard operation
vue-draggable-nested-tree copied to clipboard

disabled prop?

Open smilingkite opened this issue 6 years ago • 3 comments

I guess that right now I could disable dragging the tree by setting cross-tree to false, but that's more using a bug than a feature.

I have a tree that - using your component - is used for both reordering the tree and allowing users to edit node-attributes.

To distinguish the two, I would like a setting that turns off drag&drop for the whole tree.

Ideally the prop would also turn off the start-drag effect (right now you can still pick it up, you just can't drop it anywhere).

smilingkite avatar Nov 08 '18 08:11 smilingkite

fixed in 2.1.8

phphe avatar Nov 10 '18 15:11 phphe

Great. So how do I turn off dragging?

smilingkite avatar Nov 22 '18 09:11 smilingkite

@smilingkite :draggable="false"

phphe avatar Nov 26 '18 13:11 phphe