Configuration object for running Table.treeTable to produce a hierarchical view of a given "flat" table.

Like TotalsTableConfig, TreeTableConfig supports an operation map indicating how to aggregate the data, as well as an array of column names which will be the layers in the roll-up tree, grouped at each level. An additional optional value can be provided describing the strategy the engine should use when grouping the rows.

Hierarchy

  • TreeTableConfig

Constructors

Properties

idColumn: string

The column representing the unique ID for each item

parentColumn: string

The column representing the parent ID for each item

promoteOrphansToRoot: boolean

Optional parameter indicating if items with an invalid parent ID should be promoted to root. Defaults to false.