ExpressionFunction

Defines an AdaptableQL Function used in an Adaptable Expression

TypeScript
export interface

Properties

PropertyTypeDescription
categoryExpressionCategoryUsed to group Functions Expression Editor dropdown
descriptionstringWhat the AdaptableQL Function does
examplesstring[]Examples that demonstrate the AdaptableQL Function
handlerExpressionFunctionHandlerActual AdaptableQL Function called by the Expression (mandatory prop)
hasEagerEvaluationbooleanWhether Expression is evaluated without handling inner AST nodes
inputsExpressionFunctionInputType[] |ExpressionFunctionInputType[][]Data Types of Inputs required by Expression
isHiddenFromMenubooleanRemoves entry from Expression Editor's Functions dropdown
returnType'boolean' | 'number' | 'string' | 'date' | 'null' | 'any'Type returned by Function: boolean, number, string, date, any
signaturesstring[]How the AdaptableQL Function should be called

Property Details

category

Used to group Functions Expression Editor dropdown

TypeScript
category?: ExpressionCategory;
Property Value

ExpressionCategory

description

What the AdaptableQL Function does

TypeScript
description?: string;
Property Value

string

examples

Examples that demonstrate the AdaptableQL Function

TypeScript
examples?: string[];
Property Value

string[]

handler

Actual AdaptableQL Function called by the Expression (mandatory prop)

TypeScript
handler: ExpressionFunctionHandler;
Property Value

ExpressionFunctionHandler

hasEagerEvaluation

Whether Expression is evaluated without handling inner AST nodes

TypeScript
hasEagerEvaluation?: boolean;
Property Value

boolean

inputs

Data Types of Inputs required by Expression

TypeScript
inputs?: ExpressionFunctionInputType[] | ExpressionFunctionInputType[][];
Property Value

ExpressionFunctionInputType[] |ExpressionFunctionInputType[][]

isHiddenFromMenu

Removes entry from Expression Editor's Functions dropdown

TypeScript
isHiddenFromMenu?: boolean;
Property Value

boolean

returnType

Type returned by Function: boolean, number, string, date, any

TypeScript
returnType?: 'boolean' | 'number' | 'string' | 'date' | 'null' | 'any';
Property Value

'boolean' | 'number' | 'string' | 'date' | 'null' | 'any'

signatures

How the AdaptableQL Function should be called

TypeScript
signatures?: string[];
Property Value

string[]