vue3-tree-vue icon indicating copy to clipboard operation
vue3-tree-vue copied to clipboard

Disable dragging of specific nodes

Open SciManJD opened this issue 1 year ago • 1 comments

Hi, I would like to disable the dragging of the specific nodes. Actually I would like to decide this at runtime. I mean, when I catch a node, I want to check some conditions and to decide if this node can be dragged. Is this possible somehow? Maybe I can do this somehow with the dropValidator, but it is not clear how.

SciManJD avatar Sep 17 '24 10:09 SciManJD

Hi, I'll have a look, I can't quite remember if a disabled node isn't draggable.

But no the dropValidator is only called when the drop has happened. I am guessing your use case will require a "beforeDragEvent" or equivalent.

geekhybrid avatar Sep 18 '24 06:09 geekhybrid