AggregatedExpressionReducerContext
Context used by the reducer property in Aggregated Expressions
export interface AggregatedExpressionReducerContext extendsExtends
Properties
| Property | Type | Description |
|---|---|---|
| accumulator | any | Value returned by the previous call to the reducer function, or the initialValue if this is the first call. You return the new accumulator value from this function. |
| aggColumnId | string | Column Id of the column being aggregated |
| args | any[] | Arguments passed to the function |
| currentValue | any | Current value being processed in the Column Data |
| getValueForColId | (colId: string) => any | Helper function to get the value of a column |
| groupByColumnIds | string[] | Column Id(s) of the column(s) being grouped by |
| index | number | Index of the current value in the Column Data |
| rowNode | IRowNode | Current row node |
| weightValue | any | Resolved WEIGHT([column]) value for the current row.Only present when the function declares weight: true and the callsupplies a WEIGHT clause. |
| adaptableContext | any | Custom application Context provided in AdaptableOptions.adaptableContext |
Property Details
accumulator
Value returned by the previous call to the reducer function, or the initialValue if this is the first call. You return the new accumulator value from this function.
accumulator: any;Property Value
any
aggColumnId
Column Id of the column being aggregated
aggColumnId: string;Property Value
string
args
Arguments passed to the function
args: any[];Property Value
any[]
currentValue
Current value being processed in the Column Data
currentValue: any;Property Value
any
getValueForColId
Helper function to get the value of a column
getValueForColId: (colId: string) => any;Property Value
(colId: string) => any
groupByColumnIds
Column Id(s) of the column(s) being grouped by
groupByColumnIds?: string[];Property Value
string[]
index
Index of the current value in the Column Data
index: number;Property Value
number
rowNode
Current row node
rowNode: IRowNode;Property Value
IRowNode
weightValue
Resolved WEIGHT([column]) value for the current row.
Only present when the function declares weight: true and the call
supplies a WEIGHT clause.
weightValue?: any;Property Value
any
adaptableContext
Inherited from BaseContext
Custom application Context provided in AdaptableOptions.adaptableContext
adaptableContext: any;Property Value
any