UI Headless Runtime API - v1.0.0
    Preparing search index...

    Interface TreeSnapshot

    Immutable Tree View snapshot.

    interface TreeSnapshot {
        activeId: string | null;
        ariaMultiselectable: boolean;
        expandedIds: readonly string[];
        expansionControlled: boolean;
        role: "tree";
        selectedIds: readonly string[];
        selectionControlled: boolean;
        visibleNodes: readonly TreeNodeSnapshot[];
    }
    Index

    Properties

    activeId: string | null

    Keyboard-active node ID.

    ariaMultiselectable: boolean

    Whether multiple selection is enabled.

    expandedIds: readonly string[]

    Ordered expanded branch IDs.

    expansionControlled: boolean

    Whether expansion state is consumer-owned.

    role: "tree"

    Tree role for consumer markup.

    selectedIds: readonly string[]

    Ordered selected node IDs.

    selectionControlled: boolean

    Whether selection state is consumer-owned.

    visibleNodes: readonly TreeNodeSnapshot[]

    Visible preorder treeitem metadata.