@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
IGroupTotals<TEntity>
Constructors
Constructor
new GroupTotals<
TEntity>():GroupTotals<TEntity>
Returns
GroupTotals<TEntity>
Inherited from
Properties
__groupTotals
readonly__groupTotals:true=true
Defined in: src/core/group.ts:99
Marker identifying this row as a group-totals row.
Implementation of
__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
Inherited from
avg?
optionalavg:Record<string,any>
Defined in: src/core/group.ts:120
Per-field average values computed by aggregators.
Implementation of
group
group:
Group<TEntity>
Defined in: src/core/group.ts:104
Parent group this totals row belongs to.
Implementation of
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
max?
optionalmax:Record<string,any>
Defined in: src/core/group.ts:130
Per-field maximum values computed by aggregators.
Implementation of
min?
optionalmin:Record<string,any>
Defined in: src/core/group.ts:125
Per-field minimum values computed by aggregators.
Implementation of
sum?
optionalsum:Record<string,any>
Defined in: src/core/group.ts:115
Per-field sum values computed by aggregators.