PredicateDefHandlerContext

Object passed into an Adaptable Predicate Definition

TypeScript
export interface PredicateDefHandlerContext extends
Extends

BaseContext

Properties

PropertyDescription
columnAdapTable Column which contains the cell
displayValueDisplay value in cell being evaluated
groupValuesFor grouped columns, the array with all the values starting from the root group to the current node
inputsAny (optional) inputs required to perform evaluation
nodeAG Grid Row node which contains the cell
oldValuePrevious value in cell (e.g. if evaluating an edit)
predicatesOperatorLogic used when combining multiple Predicates ('AND'|'OR')
rawValueRaw value in cell being evaluated (as per underlying data source)
treeSelectionStateOptional TreeSelectionState - used for In predicate, when evaluating the grouped column. If this is not provided, another valid implementation is used.
valueValue in cell being evaluated (normalized as per Column DataType)
adaptableContextCustom application Context provided in AdaptableOptions.adaptableContext

Property Details

column

AdapTable Column which contains the cell

TypeScript
column: AdaptableColumn;
Property Value

AdaptableColumn

displayValue

Display value in cell being evaluated

TypeScript
displayValue: any;
Property Value

any

groupValues

For grouped columns, the array with all the values starting from the root group to the current node

TypeScript
groupValues?: string[];
Property Value

string[]

inputs

Any (optional) inputs required to perform evaluation

TypeScript
inputs?: any[];
Property Value

any[]

node

AG Grid Row node which contains the cell

TypeScript
node: IRowNode;
Property Value

IRowNode

oldValue

Previous value in cell (e.g. if evaluating an edit)

TypeScript
oldValue: any;
Property Value

any

predicatesOperator

Logic used when combining multiple Predicates ('AND'|'OR')

TypeScript
predicatesOperator?: ColumnFilter['PredicatesOperator'];
Property Value

ColumnFilter['PredicatesOperator']

rawValue

Raw value in cell being evaluated (as per underlying data source)

TypeScript
rawValue: any;
Property Value

any

treeSelectionState

Optional TreeSelectionState - used for In predicate, when evaluating the grouped column. If this is not provided, another valid implementation is used.

TypeScript
treeSelectionState?: TreeSelectionState;
Property Value

TreeSelectionState

value

Value in cell being evaluated (normalized as per Column DataType)

TypeScript
value: any;
Property Value

any

adaptableContext

Inherited from BaseContext

Custom application Context provided in AdaptableOptions.adaptableContext

TypeScript
adaptableContext: any;
Property Value

any