AggregatedExpressionReducerContext
Context used by the reducer property in Aggregated Expressions
TypeScript
export interface AggregatedExpressionReducerContext extendsExtends
Properties
| Property | Description |
|---|---|
| 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. |
| aggColumnId | Column Id of the column being aggregated |
| args | Arguments passed to the function |
| currentValue | Current value being processed in the Column Data |
| getValueForColId | Helper function to get the value of a column |
| groupByColumnIds | Column Id(s) of the column(s) being grouped by |
| index | Index of the current value in the Column Data |
| rowNode | Current row node |
| adaptableContext | 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.
TypeScript
accumulator: any;Property Value
any
aggColumnId
Column Id of the column being aggregated
TypeScript
aggColumnId: string;Property Value
string
args
Arguments passed to the function
TypeScript
args: any[];Property Value
any[]
currentValue
Current value being processed in the Column Data
TypeScript
currentValue: any;Property Value
any
getValueForColId
Helper function to get the value of a column
TypeScript
getValueForColId: (colId: string) => any;Property Value
(colId: string) => any
groupByColumnIds
Column Id(s) of the column(s) being grouped by
TypeScript
groupByColumnIds?: string[];Property Value
string[]
index
Index of the current value in the Column Data
TypeScript
index: number;Property Value
number
rowNode
Current row node
TypeScript
rowNode: IRowNode;Property Value
IRowNode
adaptableContext
Inherited from BaseContext
Custom application Context provided in AdaptableOptions.adaptableContext
TypeScript
adaptableContext: any;Property Value
any