ITreeviewNode
interface
Data Models
Shape of a single node in the treeview data tree. Supports recursive nesting via the children array, optional icon, custom size, disabled state, and expandability control.
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.
- idrequisstring
- Unique identifier for the node. Used as the key for selection and expansion state.
- labelrequisstring
- Display text for the node.
- iconTIcon
- MDI icon name rendered before the label.
- sizestring
- Override the icon size for this specific node.
- childrenITreeviewNode[]
- Nested child nodes. Presence of this field (even empty) marks the node as a branch.
- disabledboolean
- Prevent interaction (selection and expansion) on this node.
- expandableboolean
- Show the expand chevron even when children is empty or undefined (useful for lazy-load patterns).
Écosystème
Utilisé par
Composants et composables qui étendent ou consomment cette interface.
Usage
Exemples
Extraits de code prêts à coller utilisant cette interface.
Building a file-system treeview tree