-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Conversation
packages/x-tree-view/src/internals/utils/extractPluginParamsFromProps.ts
Outdated
Show resolved
Hide resolved
packages/x-tree-view/src/internals/utils/extractPluginParamsFromProps.ts
Outdated
Show resolved
Hide resolved
There was a problem hiding this 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.
docs/data/tree-view/simple-tree-view/focus/FocusedSimpleTreeView.tsx
Outdated
Show resolved
Hide resolved
docs/data/tree-view/simple-tree-view/focus/FocusedSimpleTreeView.tsx
Outdated
Show resolved
Hide resolved
packages/x-tree-view/src/internals/plugins/useTreeViewFocus/useTreeViewFocus.types.ts
Outdated
Show resolved
Hide resolved
Co-authored-by: Flavien DELANGLE <[email protected]> Signed-off-by: Nora <[email protected]>
packages/x-tree-view/src/internals/plugins/useTreeViewFocus/useTreeViewFocus.ts
Outdated
Show resolved
Hide resolved
There was a problem hiding this 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 👌
packages/x-tree-view/src/internals/plugins/useTreeViewFocus/useTreeViewFocus.ts
Outdated
Show resolved
Hide resolved
packages/x-tree-view/src/internals/useTreeView/useTreeView.types.ts
Outdated
Show resolved
Hide resolved
packages/x-tree-view/src/internals/useTreeView/useTreeView.utils.ts
Outdated
Show resolved
Hide resolved
There was a problem hiding this 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!
Signed-off-by: Nora <[email protected]> Co-authored-by: Flavien DELANGLE <[email protected]>
closes #10236