Interface TreeFactoryOptions<T>

Example

// start with every node collapsed
TreeFactory.buildTreeRows(data, { childrenProperty: "children", expanded: false });

Example

// open the first level only
TreeFactory.buildTreeRows(data, { expanded: (_row, deep) => deep === 0 });

Type Parameters

  • T

Hierarchy

  • TreeFactoryOptions

Properties

childrenProperty?: string

Property that holds the child objects. Default: "children".

deepMaxLimit?: number

Maximum depth of a row (0 = top level only); deeper children are skipped with a console warning. Default: 12.

expanded?: boolean | TreeRowExpandedFn<T>

Expanded state of the rows. Default: true (everything open, as before).