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

[TreeView] Expose expandNodeAncestors method #12168

Open
noraleonte opened this issue Feb 22, 2024 · 0 comments
Open

[TreeView] Expose expandNodeAncestors method #12168

noraleonte opened this issue Feb 22, 2024 · 0 comments
Assignees
Labels
component: tree view TreeView, TreeItem. This is the name of the generic UI component, not the React module! waiting for 👍 Waiting for upvotes

Comments

@noraleonte
Copy link
Contributor

noraleonte commented Feb 22, 2024

Follow up on #12143

How should the TreeView behave when the user focuses a node whit a collapsed parent?

I propose not to expand magically any node, but instead to give the tools to the users to expand the ancestors.
Either with an high level expandNodeAncestors method that expands the parent, grand parent etc..., or to make public isNodeExpanded + toggleNodeExpansion + getNode (the high level method is probably easier to reason with here).

Originally posted by @flaviendelangle in #12143 (comment)

Search keywords:

@github-actions github-actions bot added the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label Feb 22, 2024
@noraleonte noraleonte added component: tree view TreeView, TreeItem. This is the name of the generic UI component, not the React module! and removed status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Feb 22, 2024
@noraleonte noraleonte self-assigned this Feb 22, 2024
@flaviendelangle flaviendelangle added the waiting for 👍 Waiting for upvotes label May 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: tree view TreeView, TreeItem. This is the name of the generic UI component, not the React module! waiting for 👍 Waiting for upvotes
Projects
None yet
Development

No branches or pull requests

2 participants