Docs
CodeRabbit
Cloudflare
Railway
AG Grid
WorkOS
OpenRouter
Netlify
Clerk
SerpAPI
Unkey
Sentry
Prisma
Electric
CodeRabbit
Cloudflare
Railway
AG Grid
WorkOS
OpenRouter
Netlify
Clerk
SerpAPI
Unkey
Sentry
Prisma
Electric
Table API Reference
Column API Reference
Row API Reference
Cell API Reference
Header API Reference
Features API Reference
Static Functions API Reference
Legacy API Reference
Static Functions API Reference

table_resetGlobalFilter

Function: table_resetGlobalFilter()

ts
function table_resetGlobalFilter<TFeatures, TData>(table, defaultState?): void;
function table_resetGlobalFilter<TFeatures, TData>(table, defaultState?): void;

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

Resets globalFilter to the configured initial state or feature default.

With no argument, the reset clones table.initialState.globalFilter. Passing true ignores initial state and resets to undefined.

Type Parameters

TFeatures

TFeatures extends TableFeatures

TData

TData extends RowData

Parameters

table

Table_Internal<TFeatures, TData>

defaultState?

boolean

Returns

void

Example

ts
table_resetGlobalFilter(table)
table_resetGlobalFilter(table, true)
table_resetGlobalFilter(table)
table_resetGlobalFilter(table, true)