[docs] Tree View: check children, uncheck parents #13246
Labels
component: tree view
TreeView, TreeItem. This is the name of the generic UI component, not the React module!
duplicate
This issue or pull request already exists
support: docs-feedback
Feedback from documentation page
Related page
https://mui.com/x/react-tree-view/rich-tree-view/selection/
Kind of issue
Missing information
Issue description
I'm not sure if this is a component issue or a docs issue. Essentially the treeview component has default behaviours which differ from that which you typically find in a treeview component. I'm speaking about node selection. I'm used to a treeview component that, when a parent node is selected, auto selects the child nodes underneath. And by turn, when nodes are deselected, the parent nodes get deselected.
I've found out that it's possible to implement this manually and have blogged about it here:
https://johnnyreilly.com/mui-react-tree-view-check-children-uncheck-parents
Would it be useful to add this directly to the documentation, for those that might not happen on my blog? I'd be happy to submit a PR. Or if you're happy linking to my blog, please feel free to.
Context
See above
Search keywords: Treeview
The text was updated successfully, but these errors were encountered: