AggregatedExpressionReducerContext

Context used by the reducer property in Aggregated Expressions

TypeScript
export interface AggregatedExpressionReducerContext extends
Extends

BaseContext

Properties

PropertyDescription
accumulatorValue 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.
aggColumnIdColumn Id of the column being aggregated
argsArguments passed to the function
currentValueCurrent value being processed in the Column Data
getValueForColIdHelper function to get the value of a column
groupByColumnIdsColumn Id(s) of the column(s) being grouped by
indexIndex of the current value in the Column Data
rowNodeCurrent row node
adaptableContextCustom 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