Cascading selection with indeterminate state
Checkbox selection in tree mode can cascade from parents to descendants, with parents showing an indeterminate state when only some children are selected. Independent and leaf-only modes are also supported. This matches common hierarchical picker expectations.
Planned. This page shows the specification from issue #197. The live example, source for every framework and the API reference replace it when the feature ships.
Live example
A permissions tree with checkboxes, nothing selected, and cascade mode on.
Expected behavior
Checking a parent selects all its descendants. Unchecking a child sets its parent to indeterminate. The panel shows the selected ids for the current mode.
Planned API surface
rowSelectiontreeSelectionMode ('cascade' | 'independent' | 'leavesOnly')getSelectedRowsgetSelectedLeafRowsselectRowonSelectionChangedAcceptance criteria
- The indeterminate state is shown when some, but not all, descendants are selected (pending)
- Selecting a lazy parent marks its future children as selected when they load (pending)
- Select-all respects the filter when that option is enabled (pending)
- leavesOnly mode returns only leaf ids (pending)
- Selection persists across collapse and expand (pending)