Rich Tree View - Expansion
Handle how users can expand items.
Controlled expansion
Use the expandedItems
prop to control the expanded items.
You can use the onExpandedItemsChange
prop to listen to changes in the expanded items and update the prop accordingly.
- Data Grid
- Date and Time Pickers
- Charts
- Tree View
Press Enter to start editing
Track item expansion change
Use the onItemExpansionToggle
prop if you want to react to an item expansion change:
No action recorded
- Data Grid
- Date and Time Pickers
- Charts
- Tree View
Press Enter to start editing
Change item expansion
You can use the setItemExpansion
API method to imperatively change the expansion of an item:
- Data Grid
- Date and Time Pickers
Press Enter to start editing