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

Limit the depth of tree

Open cpgb85 opened this issue 2 years ago • 3 comments

is there a way to limit the depth of the tree?

cpgb85 avatar Mar 27 '23 17:03 cpgb85

Use hook prop eachDroppable, calc dragging node's depth and hoveing node's depth, return boolean to control if droppable.

phphe avatar Mar 28 '23 12:03 phphe

and how do i do this? you have almost no code examples

cpgb85 avatar Mar 29 '23 03:03 cpgb85

I recommend using he-tree. There is a prop for that: maxLevel

phphe avatar Mar 29 '23 15:03 phphe