Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Limit the depth of tree #75

Open
cpgb85 opened this issue Mar 27, 2023 · 3 comments
Open

Limit the depth of tree #75

cpgb85 opened this issue Mar 27, 2023 · 3 comments

Comments

@cpgb85
Copy link

cpgb85 commented Mar 27, 2023

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

@phphe
Copy link
Owner

phphe commented Mar 28, 2023

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

@cpgb85
Copy link
Author

cpgb85 commented Mar 29, 2023

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

@phphe
Copy link
Owner

phphe commented Mar 29, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants