Interface RawNodeDatum

A node in the data you pass to Tree.

interface RawNodeDatum {
    attributes?: Record<string, string | number | boolean>;
    children?: RawNodeDatum[];
    name: string;
}

Hierarchy (View Summary)

Properties

attributes?: Record<string, string | number | boolean>

Extra details about the node. The default node lists each key-value pair below the name.

children?: RawNodeDatum[]

The node's child nodes.

name: string

The node's name. The default node shows it as the main label.