-
Notifications
You must be signed in to change notification settings - Fork 815
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
[Tree] Provide some sort of expand/collapse_all
facility for TreeNode
#1430
Labels
enhancement
New feature or request
Comments
Also |
willmcgugan
changed the title
Consider providing some sort of
[Tree] Consider providing some sort of Jan 19, 2023
expand_all
facility for TreeNode
expand_all
facility for TreeNode
davep
changed the title
[Tree] Consider providing some sort of
[Tree] Provide some sort of Jan 23, 2023
expand_all
facility for TreeNode
expand_all
facility for TreeNode
davep
changed the title
[Tree] Provide some sort of
[Tree] Provide some sort of Jan 23, 2023
expand_all
facility for TreeNode
expand/collapse_all
facility for TreeNode
davep
added a commit
to davep/textual
that referenced
this issue
Jan 23, 2023
This commit moves the bulk of the work of each action into an internal method that does everything *apart* from invalidating the tree. The idea being that all of the expanded states get updated, all of the update counts get updated, and then finally one single tree invalidation takes place (the latter taking place in the public method, which calls the related internal method). See Textualize#1430.
Don't forget to star the repository! Follow @textualizeio for Textual updates. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It's currently possible to
expand
aTreeNode
, but that only expands the direct children. It would be useful if it had an optional parameter, or another method akin toexpand_all
, so that every expandable descendent node is expanded.The text was updated successfully, but these errors were encountered: