@theredhead — Frontend Library - v1.0.0
    Preparing search index...

    A single node in a hierarchical tree structure.

    interface TreeNode<T = unknown> {
        children?: TreeNode<T>[];
        data: T;
        disabled?: boolean;
        expanded?: boolean;
        icon?: string;
        id: string;
    }

    Type Parameters

    • T = unknown

      The data payload type carried by each node.

    Index

    Properties

    children?: TreeNode<T>[]

    Child nodes. An empty array or undefined indicates a leaf node.

    data: T

    The data payload associated with this node.

    disabled?: boolean

    Whether the node is disabled (cannot be selected or toggled).

    expanded?: boolean

    Whether the node starts in an expanded state. Defaults to false when omitted.

    icon?: string

    Optional icon SVG inner content (paths, circles, etc.) rendered via <ui-icon>. When omitted, no icon is shown.

    id: string

    Unique identifier for the node.