Interface RowGroupColumnOptionsIf<T>

Options of the group column (RowGroupColumnDef) – the column with the arrows and the group labels.

Example

RowGroupFactory.createTableModel<Sale>({
rows: sales, columnDefs, groupBy: ["region"],
groupColumn: { headerLabel: "Region", width: px160, label: g => `${g.label} – ${g.count} sales` }
});

Since

1.1.94

Type Parameters

  • T = any

Hierarchy

  • RowGroupColumnOptionsIf

Properties

fixed: boolean

Fix the column on the left (it comes behind row numbers and the checkbox column). Default true.

headerLabel?: string

The header text. Default: the names of the levels, e.g. "Region › Produkt" (follows TableApi.setRowGroupBy).

label?: ((group) => string)

Type declaration

    • (group): string
    • An own label of a group row (text, never HTML). Default: "<key> (<count>)".

      Parameters

      Returns string

showCount: boolean

Show the number of rows behind the key: "Nord (3)". Default true.

width: SizeIf

The width. Default 220 px.