Skip to content

Disable nesting for specific tree #92

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

Closed
ben-roth opened this issue Aug 14, 2019 · 4 comments
Closed

Disable nesting for specific tree #92

ben-roth opened this issue Aug 14, 2019 · 4 comments

Comments

@ben-roth
Copy link

I have 2 trees, I want to disable nesting in one tree so that I can't nest any children but I want to be able to keep nesting working in the other tree. Is there a way I can do this by tree? Thank you!

@phphe
Copy link
Owner

phphe commented Aug 14, 2019

make the data not nested, then the tree will not be nested. If you just want the tree with nesting data looks not nested, pass tree prop indent 0

<Tree :indent="0">

@ben-roth
Copy link
Author

make the data not nested

I understand that, but when dragging nodes around, they can easily "nest" even if they look like they are not nested by using indent="0" that will still nest the data no? Or will indent="0" prevent drag nesting?

@phphe
Copy link
Owner

phphe commented Aug 14, 2019

set all node 'droppable=false'

@ben-roth
Copy link
Author

Thanks!

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