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.

typescript

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.

id
requis
string
Unique identifier for the node. Used as the key for selection and expansion state.
label
requis
string
Display text for the node.
icon
TIcon
MDI icon name rendered before the label.
size
string
Override the icon size for this specific node.
children
ITreeviewNode[]
Nested child nodes. Presence of this field (even empty) marks the node as a branch.
disabled
boolean
Prevent interaction (selection and expansion) on this node.
expandable
boolean
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

typescript