INestedProps
interface
Data & State
Selection and open-state contract for tree-like and nested list components — governs item selection strategy, expand/collapse strategy, current selection and opened nodes.
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.
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.
- selectStrategyTSelectStrategy | TSelectStrategyFn
- Named selection strategy ("single-leaf", "leaf", "independent", "classic") or a custom function that determines which nodes are selectable and how selection propagates through the tree.
- openStrategyTOpenStrategy | TOpenStrategyFns
- Named open/expand strategy ("single", "multiple", "list") or a set of custom handler functions that control which nodes can be open simultaneously.
- selectedArray<unknown>
- Array of currently selected node values. Drives v-model:selected on tree and list components.
- openedArray<unknown>
- Array of currently expanded node values. Drives v-model:opened on tree and list components.
- mandatoryboolean
- When true, at least one item must remain selected at all times — deselecting the last item is prevented.
Écosystème
Utilisé par
Composants et composables qui étendent ou consomment cette interface.
Usage
Exemples
Extraits de code prêts à coller utilisant cette interface.
Extending the interface for a tree component