@serenity-is/sleekgrid / GroupTotals

Class: GroupTotals<TEntity>

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

Information about group totals. An instance of GroupTotals will be created for each totals row and passed to the aggregators so that they can store arbitrary data in it. That data can later be accessed by group totals formatters during the display. GroupTotals

Extends

Type Parameters

TEntity

TEntity = any

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:103

Implementation of

IGroupTotals.__groupTotals


__nonDataRow

__nonDataRow: boolean = true

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

Implementation of

IGroupTotals.__nonDataRow

Inherited from

NonDataRow.__nonDataRow


avg?

optional avg: Record<string, any>

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

Contains avg

Implementation of

IGroupTotals.avg


group

group: Group<TEntity>

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

Parent Group.

Param

Implementation of

IGroupTotals.group


initialized

initialized: boolean = false

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

Whether the totals have been fully initialized / calculated. Will be set to false for lazy-calculated group totals.

Param

Implementation of

IGroupTotals.initialized


max?

optional max: Record<string, any>

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

Contains max

Implementation of

IGroupTotals.max


min?

optional min: Record<string, any>

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

Contains min

Implementation of

IGroupTotals.min


sum?

optional sum: Record<string, any>

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

Contains sum

Implementation of

IGroupTotals.sum