Skip to content

@serenity-is/sleekgrid / IGroupTotals

Interface: IGroupTotals<TEntity>

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

Minimal totals information attached to a Group. Aggregators populate sum/avg/min/max and arbitrary data on this object.

Type Parameters

TEntity

TEntity = any

Row item type.

Properties

__groupTotals?

optional __groupTotals: boolean

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

Marker identifying the row as a group-totals row.


__nonDataRow?

optional __nonDataRow: boolean

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

Whether the row is a non-data row (inherited from NonDataRow).


avg?

optional avg: Record<string, any>

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

Per-field average values.


group?

optional group: Group<TEntity>

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

Parent group this totals row belongs to.


initialized?

optional initialized: boolean

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

Whether totals have been fully calculated; false for lazy totals.


max?

optional max: Record<string, any>

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

Per-field maximum values.


min?

optional min: Record<string, any>

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

Per-field minimum values.


sum?

optional sum: Record<string, any>

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

Per-field sum values.