Skip to main content

Functions

Grok functions

Constructors

new Functions()

new Functions(): Functions

Returns

Functions

Accessors

clientCache

get clientCache(): ClientCache

Controls client caching.

Returns

ClientCache

Source

src/functions.ts:132


onAfterRunAction

get onAfterRunAction(): Observable <FuncCall>

Returns

Observable <FuncCall>

Source

src/functions.ts:180


onBeforeRunAction

get onBeforeRunAction(): Observable <FuncCall>

Returns

Observable <FuncCall>

Source

src/functions.ts:179


onParamsUpdated

get onParamsUpdated(): Observable <FuncCall>

Returns

Observable <FuncCall>

Source

src/functions.ts:181

Methods

call()

call(name, parameters, showProgress, progress): Promise<any>

Parameters

ParameterTypeDefault value
namestringundefined
parametersobject{}
showProgressbooleanfalse
progressnull | ProgressIndicatornull

Returns

Promise<any>

Source

src/functions.ts:143


eval()

eval(name, context?): Promise<any>

Parameters

ParameterType
namestring
context?Context

Returns

Promise<any>

Source

src/functions.ts:147


find()

find(name): Promise<null | Func>

Returns a function with the specified name, or null if not found. See also find.

Parameters

ParameterType
namestring

Returns

Promise<null | Func>

Source

src/functions.ts:166


get()

get(name): Promise <Func>

Returns a function with the specified name, or throws an error if there is no such function. See also find.

Parameters

ParameterType
namestring

Returns

Promise <Func>

Source

src/functions.ts:157


getCurrentCall()

getCurrentCall(): FuncCall

Returns

FuncCall

Source

src/functions.ts:175


parse()

parse(command, safe): any

Parameters

ParameterTypeDefault value
commandstringundefined
safebooleantrue

Returns

any

Source

src/functions.ts:151


register()

register(func): Func

Registers a function globally.

Parameters

ParameterType
funcIFunctionRegistrationData

Returns

Func

Source

src/functions.ts:135


registerParamFunc()

registerParamFunc(name, type, run, check, description): void

Parameters

ParameterTypeDefault value
namestringundefined
type"string" | "bigint" | "object" | "map" | "file" | "view" | "int" | "double" | "bool" | "byte_array" | "datetime" | "qnum" | "dataframe" | "num" | "string_list" | "dataframe_list" | "cell" | "column" | "column_list" | "graphics" | "tablerowfiltercall" | "colfiltercall" | "bitset" | "dynamic" | "viewer" | "list" | "semantic_value" | "func" | "funccall" | "property" | "categorical" | "numerical" | "GridCellRenderArgs" | "element" | "TableView" | "User" | "Menu" | "Project" | "event_data" | "progressindicator" | "Credentials" | "ScriptEnvironment" | "Notebook"undefined
runFunctionundefined
checknull | booleannull
descriptionnull | stringnull

Returns

void

Source

src/functions.ts:139


scriptSync()

scriptSync(s): any

Parameters

ParameterType
sstring

Returns

any

Source

src/functions.ts:171