@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
-
↳
GroupTotals
Table of contents
Constructors
Properties
Constructors
constructor
• new GroupTotals<TEntity
>(): GroupTotals
<TEntity
>
Type parameters
Name | Type |
---|---|
TEntity |
any |
Returns
GroupTotals
<TEntity
>
Inherited from
Properties
__groupTotals
• Readonly
__groupTotals: true
Defined in
__nonDataRow
• __nonDataRow: boolean
= true
Inherited from
Defined in
avg
• Optional
avg: number
Contains avg
Defined in
group
• group: Group
<TEntity
>
Parent Group.
Param
Defined in
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
max
• Optional
max: any
Contains max
Defined in
min
• Optional
min: any
Contains min
Defined in
sum
• Optional
sum: number
Contains sum