leafSingleSelectStrategy
Commons
stable
Factory that returns a TStrategySelect allowing only a single leaf node to be selected at a time. Selecting a new leaf deselects the previously selected one.
API
Signature
Full TypeScript signature sourced from the util file.
API
Parameters
Input parameters accepted by this util.
- mandatoryboolean
- When true, the current selection cannot be cleared — the user must select another leaf to move focus.
API
Return value
The value returned by this util.
- A strategy object with select, in, and out hooks consumed by useNested / OrigamTreeview.
Usage
Examples
Ready-to-paste usage snippets.
Single-leaf selection for a sidebar tree nav