AdaptablePredicateDef

Defines a Predicate - include where it can run and what it does

TypeScript
export interface

Properties

PropertyDescription
columnScopeColumns (or DataTypes) where Predicate is active
handlerActual boolean function invoked when evaluating the Predicate
iconIcon to show (primarily used in Filter dropdown)
idPredicate Id
inputsInputs the Predicate can take
labelName of the Predicate
moduleScopeModules where Predicate can run
shortcutsKeyboard shortcuts to initiate predicate - used in Quick Filter bar
toStringString representation of the Predicate

Property Details

columnScope

Columns (or DataTypes) where Predicate is active

TypeScript
columnScope: ColumnScope;
Property Value

ColumnScope

handler

Actual boolean function invoked when evaluating the Predicate

TypeScript
handler: (params: PredicateDefHandlerContext) => boolean;
Property Value

(params:PredicateDefHandlerContext) => boolean

icon

Icon to show (primarily used in Filter dropdown)

TypeScript
icon?: AdaptableIcon | {
        text: string;
    };
Property Value

AdaptableIcon | \{ text: string; \}

id

Predicate Id

TypeScript
id: PREDICATE_TYPE;
Property Value

PREDICATE_TYPE

inputs

Inputs the Predicate can take

TypeScript
inputs?: PredicateDefInput[];
Property Value

PredicateDefInput[]

label

Name of the Predicate

TypeScript
label: string;
Property Value

string

moduleScope

Modules where Predicate can run

TypeScript
moduleScope: PredicateModuleScope[];
Property Value

PredicateModuleScope[]

shortcuts

Keyboard shortcuts to initiate predicate - used in Quick Filter bar

TypeScript
shortcuts?: string[];
Property Value

string[]

toString

String representation of the Predicate

TypeScript
toString?: (params: PredicateDefToStringParams) => string;
Property Value

(params:PredicateDefToStringParams) => string