table_setGlobalFilter

Function: table_setGlobalFilter()

ts
function table_setGlobalFilter<TFeatures, TData>(table, updater): void;

Defined in: features/global-filtering/globalFilteringFeature.utils.ts:91

Routes a global filter updater through the table's global filter handler.

The updater may be a next value or a function of the previous value, matching the instance table.setGlobalFilter behavior.

Type Parameters

TFeatures

TFeatures extends TableFeatures

TData

TData extends RowData

Parameters

table

Table_Internal\<`TFeatures`, `TData`\>

updater

any

Returns

void

Example

ts
table_setGlobalFilter(table, 'search text')