GridFilterApi

Provides run-time access to Grid Filter section of Adaptable State.

TypeScript
export interface

Methods

MethodReturnsDescription
clearGridFilter()voidClears the Grid Filter (for the current Layout)
getCurrentGridFilter()GridFilter | undefinedRetrieves the Grid Filter from the current Layout
getCurrentGridFilterExpression()string | undefinedRetrieves the Grid Filter's Expression from the current layout
openUIEditorForGridFilter(expression)voidOpens the AdapTableQL UI Components (Expression Editor & Query Builder)
reApplyGridFilter()voidRe-applies the Grid Filter
setGridFilterExpression(expression)voidSets the Grid Filter (for the current layout)
setGridFilterExpressionUsingNamedQuery(namedQuery)voidSets the Grid Filter (for the current layout)
suspendGridFilter()voidSuspends the Grid Filter
unSuspendGridFilter()voidUnsuspends the Grid Filter

Method Details

clearGridFilter

Clears the Grid Filter (for the current Layout)

TypeScript
clearGridFilter(): void;
Returns

void

getCurrentGridFilter

Retrieves the Grid Filter from the current Layout

TypeScript
getCurrentGridFilter(): GridFilter | undefined;
Returns

GridFilter | undefined

getCurrentGridFilterExpression

Retrieves the Grid Filter's Expression from the current layout

TypeScript
getCurrentGridFilterExpression(): string | undefined;
Returns

string | undefined

openUIEditorForGridFilter

Opens the AdapTableQL UI Components (Expression Editor & Query Builder)

TypeScript
openUIEditorForGridFilter(expression?: string): void;
Parameters
ParameterTypeDescription
expressionstringcurrent Grid Filter expression
Returns

void

reApplyGridFilter

Re-applies the Grid Filter

TypeScript
reApplyGridFilter(): void;
Returns

void

setGridFilterExpression

Sets the Grid Filter (for the current layout)

If expression is null, undefined or a blank string the Grid Filter is cleared (equivalent to calling ). This makes it safe to drive the Grid Filter from form-style controls that emit empty values when the user deselects everything, without having to branch in the caller.

TypeScript
setGridFilterExpression(expression: string | null | undefined): void;
Parameters
ParameterTypeDescription
expressionstring | null | undefinedfilter string, or a falsy value to clear the filter
Returns

void

setGridFilterExpressionUsingNamedQuery

Sets the Grid Filter (for the current layout)

TypeScript
setGridFilterExpressionUsingNamedQuery(namedQuery: NamedQuery): void;
Parameters
ParameterTypeDescription
namedQueryNamedQuery: NamedQuery to use
Returns

void

suspendGridFilter

Suspends the Grid Filter

TypeScript
suspendGridFilter(): void;
Returns

void

unSuspendGridFilter

Unsuspends the Grid Filter

TypeScript
unSuspendGridFilter(): void;
Returns

void