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
Definition
The TypeScript interface definition as found in the origam source. Click the copy icon to copy the snippet.
API
Properties
Every property declared by this interface, with its type, optionality and default.
- idrequiredstring
- Unique identifier for the node. Used as the key for selection and expansion state.
- labelrequiredstring
- 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).
Ecosystem
Used by
Components and composables that extend or consume this interface.
Usage
Examples
Ready-to-paste code snippets using this interface.
Building a file-system treeview tree