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.

typescript

API

Properties

Every property declared by this interface, with its type, optionality and default.

id
required
string
Unique identifier for the node. Used as the key for selection and expansion state.
label
required
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).

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

typescript