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] Add public API and expose focus method #12143

Merged
merged 23 commits into from
Feb 28, 2024

Conversation

noraleonte
Copy link
Contributor

closes #10236

@noraleonte noraleonte added the component: tree view TreeView, TreeItem. This is the name of the generic UI component, not the React module! label Feb 19, 2024
@noraleonte noraleonte self-assigned this Feb 19, 2024
@noraleonte noraleonte mentioned this pull request Feb 19, 2024
2 tasks
@mui-bot
Copy link

mui-bot commented Feb 19, 2024

Copy link
Member

@flaviendelangle flaviendelangle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It a great DX improvement 👌

We are missing a few tests (you can put them in SimpleTreeVIew.test.tsx, I need to split the test file and see how we can run them on both SimpleTreeView and RichTreeView without duplicating everything).

And the doc page should probably be copied on the RichTreeView doc once ready.

@noraleonte noraleonte marked this pull request as ready for review February 23, 2024 13:36
Copy link
Member

@flaviendelangle flaviendelangle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The behavior seems good to me
Those are mostly nitpicks, I think we will be good to go after those 👌

Copy link
Member

@flaviendelangle flaviendelangle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great 🥳

This new prop will allow us to move the Tree View to the next level of interactivity with devs!

@noraleonte noraleonte merged commit 67b8436 into mui:next Feb 28, 2024
17 checks passed
@noraleonte noraleonte deleted the focused-node-apiref branch February 28, 2024 12:27
thomasmoon pushed a commit to thomasmoon/mui-x that referenced this pull request Sep 9, 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!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[TreeView] Add prop to TreeView component to control focused node
3 participants