Interface RowGroupModelOptionsIf<T>

Options of an AreaModelRowGroups (the factory RowGroupFactory.createTableModel fills them).

Example

const body = new AreaModelRowGroups<Sale>(sales, columnDefs, { groupBy: ["region"], aggregations: { umsatz: "sum" } });

Since

1.1.94

Type Parameters

  • T = any

Hierarchy

  • RowGroupModelOptionsIf

Properties

aggregations?: AggregateSpecMap<T>

The aggregates of the group rows; the key is the property of the column that shows it ({ umsatz: "sum" }).

emptyLabel?: string

The label of the group of empty keys (null, undefined, ""). Default "(empty)".

expanded?: RowGroupExpanded<T>

Which groups are expanded at the start and in new paths after regrouping. Default true.

groupBy: RowGroupField<T>[]

The levels, top first. An empty list shows the rows without groups.

groupColumn?: Partial<RowGroupColumnOptionsIf<T>>

Label options of the group column (showCount, label).

hideGroupedColumns?: boolean

Hide the columns of the grouped properties (their values are in the group column). Default true.