holiber / sl-vue-tree

Customizable draggable tree component for Vue.js
https://holiber.github.io/sl-vue-tree/
MIT License
345 stars 78 forks source link

Disable drop nodes #63

Open ThomasKientz opened 5 years ago

ThomasKientz commented 5 years ago

Is there a way to disable certain nodes/targets so we can prevent insertion in particular paths.

I have used isLeaf : true, but it doesn't work when a node already have children.

Great lib, thanks !

holiber commented 5 years ago

Try this solution https://github.com/holiber/sl-vue-tree/issues/12

ThomasKientz commented 5 years ago

@holiber I am using it as a workaround atm !