Simple Tree View - Expansion
Handle how users can expand items.
Controlled expansion
Use the expanded
prop to control the expanded items.
You can use the onNodeToggle
prop to listen to changes in the expanded items and update the prop accordingly.
- Data Grid
- Date and Time Pickers
- Charts
- Tree View
Track node expansion change
Use the onNodeExpansionToggle
if you want to react to a node expansion change:
No action recorded
- Data Grid
- Date and Time Pickers
- Charts
- Tree View