SELECT_STRATEGY

enum
Behavior

TypeScript enum for tree/list selection strategy — single-leaf, leaf, independent, single-independent, or classic.

TypeScript

Definition

The TypeScript definition as found in the origam source. Click the copy icon to copy the snippet.

typescript

Members

Members

All members of this enum. Click a value to copy it to clipboard.

SELECT_STRATEGY.SINGLE_LEAF
Only one leaf node can be selected at a time; parent nodes are not selectable.
SELECT_STRATEGY.LEAF
Any number of leaf nodes can be selected; parent nodes are not selectable.
SELECT_STRATEGY.INDEPENDENT
Each node is selected independently — selecting a parent does not affect its children.
SELECT_STRATEGY.SINGLE_INDEPENDENT
Only one node can be selected at a time, regardless of type (leaf or branch).
SELECT_STRATEGY.CLASSIC
Classic cascading selection — selecting a parent automatically selects or deselects all its children.

Ecosystem

Used by

Components and props that accept this enum as a value.

Usage

Examples

Ready-to-paste code snippets using this enum.

Using the enum in script setup

typescript