ITreeviewProps

interface
Component Props

Full props contract for <OrigamTreeview>. Hierarchical tree with multi/single selection, expansion control, line guides, lazy-expand support, and the full color/bgColor/size/density surface.

TypeScript

Définition

La définition TypeScript de l'interface telle que trouvée dans le code source d'origam. Cliquez sur l'icône de copie pour copier l'extrait.

typescript

Héritage

Hérite de

Interfaces parentes dont celle-ci hérite. Leurs propriétés sont disponibles pour tout consommateur de cette interface.

API

Propriétés

Chaque propriété déclarée par cette interface, avec son type, son caractère optionnel et sa valeur par défaut.

items
requis
ITreeviewNode[]
Flat or nested array of tree nodes driving the render.
modelValue
string[] | string
Selected node id(s). Array for multi-select, string for single-select. Binds via v-model.
expandedValue
string[]
IDs of currently expanded branch nodes. Controlled via v-model:expandedValue.
selectMode
TTreeviewSelectMode
Selection strategy: none, single, or multiple.
selectableNodes
TTreeviewSelectableNodes
Which node types can be selected: all, leaf, or branch.
showLines
boolean
Render vertical guide lines connecting parent to children.
expandOnClick
boolean
Expand/collapse a branch node when the row label area is clicked (not just the chevron).
ariaLabel
string

Écosystème

Utilisé par

Composants et composables qui étendent ou consomment cette interface.

Usage

Exemples

Extraits de code prêts à coller utilisant cette interface.

Multi-select treeview with guide lines

vue