@serenity-is/sleekgrid / GroupTotals

Class: GroupTotals<TEntity>

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

Type parameters

Name Type
TEntity any

Hierarchy

Table of contents

Constructors

Properties

Constructors

constructor

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

Type parameters

Name Type
TEntity any

Returns

GroupTotals<TEntity>

Inherited from

NonDataRow.constructor

Properties

__groupTotals

Readonly __groupTotals: true

Defined in

core/group.ts:99


__nonDataRow

__nonDataRow: boolean = true

Inherited from

NonDataRow.__nonDataRow

Defined in

core/base.ts:5


avg

Optional avg: number

Contains avg

Defined in

core/group.ts:124


group

group: Group<TEntity>

Parent Group.

Param

Defined in

core/group.ts:106


initialized

initialized: boolean = false

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

Param

Defined in

core/group.ts:114


max

Optional max: any

Contains max

Defined in

core/group.ts:134


min

Optional min: any

Contains min

Defined in

core/group.ts:129


sum

Optional sum: number

Contains sum

Defined in

core/group.ts:119