Skip to content

Rich Tree View - Selection

Handle how users can select items.

Multi selection

The Tree View also supports multi-selection:

Press Enter to start editing

Disable selection

Use the disableSelection prop if you don't want your items to be selectable:

Press Enter to start editing

Controlled selection

Use the selectedItems prop to control the selected items.

You can use the onSelectedItemsChange prop to listen to changes in the selected items and update the prop accordingly.

Press Enter to start editing

Track item selection change

Use the onItemSelectionToggle prop if you want to react to an item selection change:

No item selection recorded

Press Enter to start editing


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