Skip to content
+

Rich Tree View - Expansion

Handle how users can expand items.

Controlled expansion

Use the expandedNodes prop to control the expanded items.

You can use the onExpandedNodesChange prop to listen to changes in the expanded items and update the prop accordingly.

Press Enter to start editing

Track node expansion change

Use the onNodeExpansionToggle prop if you want to react to a node expansion change:

No action recorded

Press Enter to start editing

API

See the documentation below for a complete reference to all of the props and classes available to the components mentioned here.