Skip to content

@serenity-is/sleekgrid / GroupTotals

Class: GroupTotals<TEntity>

Defined in: src/core/group.ts:96

Totales row for a Group. Created for each group and passed to aggregators so they can store computed data that is later accessed by group-totals formatters.

Extends

Type Parameters

TEntity

TEntity = any

Row item type.

Implements

Constructors

Constructor

new GroupTotals<TEntity>(): GroupTotals<TEntity>

Returns

GroupTotals<TEntity>

Inherited from

NonDataRow.constructor

Properties

__groupTotals

readonly __groupTotals: true = true

Defined in: src/core/group.ts:99

Marker identifying this row as a group-totals row.

Implementation of

IGroupTotals.__groupTotals


__nonDataRow

__nonDataRow: boolean = true

Defined in: src/core/base.ts:11

Marker flag used at runtime to identify non-data rows. Checked by the grid and DataView to skip data-specific handling.

Implementation of

IGroupTotals.__nonDataRow

Inherited from

NonDataRow.__nonDataRow


avg?

optional avg: Record<string, any>

Defined in: src/core/group.ts:120

Per-field average values computed by aggregators.

Implementation of

IGroupTotals.avg


group

group: Group<TEntity>

Defined in: src/core/group.ts:104

Parent group this totals row belongs to.

Implementation of

IGroupTotals.group


initialized

initialized: boolean = false

Defined in: src/core/group.ts:110

Whether the totals have been fully initialized/calculated. Set to false for lazy-calculated totals.

Implementation of

IGroupTotals.initialized


max?

optional max: Record<string, any>

Defined in: src/core/group.ts:130

Per-field maximum values computed by aggregators.

Implementation of

IGroupTotals.max


min?

optional min: Record<string, any>

Defined in: src/core/group.ts:125

Per-field minimum values computed by aggregators.

Implementation of

IGroupTotals.min


sum?

optional sum: Record<string, any>

Defined in: src/core/group.ts:115

Per-field sum values computed by aggregators.

Implementation of

IGroupTotals.sum