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

expand tree #5

Open
DaniBencz opened this issue Apr 28, 2020 · 0 comments
Open

expand tree #5

DaniBencz opened this issue Apr 28, 2020 · 0 comments

Comments

@DaniBencz
Copy link

I make great use of the library, thanks a lot! Below is more of an idea than issue.
I found that it should be nice to have some hook/callback to expand/close the entire tree.
Logging tree.closeDepth yields undefined, so it can't be manipulated once the tree is instantiated.
Thank you!

tuj84257 added a commit to tuj84257/treejs that referenced this issue Mar 25, 2022
For example, calling `tree.collapseAll();` collapses the entire tree.
tuj84257 added a commit to tuj84257/treejs that referenced this issue Mar 25, 2022
For example, calling `tree.expandAll();` expands the entire tree.
daweilv added a commit that referenced this issue Mar 27, 2022
#5 Add `expandAll` and `collapseAll` methods
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

1 participant