Docs
CodeRabbit
Cloudflare
AG Grid
SerpAPI
Netlify
Neon
WorkOS
Clerk
Convex
Electric
PowerSync
Sentry
Railway
Prisma
Strapi
Unkey
CodeRabbit
Cloudflare
AG Grid
SerpAPI
Netlify
Neon
WorkOS
Clerk
Convex
Electric
PowerSync
Sentry
Railway
Prisma
Strapi
Unkey
Table API Reference
Column API Reference
Row API Reference
Cell API Reference
Header API Reference
Features API Reference
Legacy API Reference
Enterprise
Features API Reference

TableOptions_GlobalFiltering

Interface: TableOptions_GlobalFiltering<TFeatures, TData>

Defined in: features/global-filtering/globalFilteringFeature.types.ts:32

Type Parameters

TFeatures

TFeatures extends TableFeatures

TData

TData extends RowData

Properties

enableGlobalFilter?

ts
optional enableGlobalFilter: boolean;

Defined in: features/global-filtering/globalFilteringFeature.types.ts:39

Enables/disables global filtering for all columns.


getColumnCanGlobalFilter()?

ts
optional getColumnCanGlobalFilter: <TFeatures, TData, TValue>(column) => boolean;

Defined in: features/global-filtering/globalFilteringFeature.types.ts:44

If provided, this function will be called with the column and should return true or false to indicate whether this column should be used for global filtering. This is useful if the column can contain data that is not string or number (i.e. undefined).

Type Parameters

TFeatures

TFeatures extends TableFeatures

TData

TData extends RowData

TValue

TValue extends unknown = unknown

Parameters

column

Column<TFeatures, TData, TValue>

Returns

boolean


globalFilterFn?

ts
optional globalFilterFn: FilterFnOption<TFeatures, TData>;

Defined in: features/global-filtering/globalFilteringFeature.types.ts:57

The filter function to use for global filtering.

  • A string referencing a built-in filter function
  • A string that references a custom filter functions provided via the tableOptions.filterFns option
  • A custom filter function

onGlobalFilterChange?

ts
optional onGlobalFilterChange: OnChangeFn<any>;

Defined in: features/global-filtering/globalFilteringFeature.types.ts:61

If provided, this function will be called with an updaterFn when state.globalFilter changes. This overrides the default internal state management, so you will need to persist the state change either fully or partially outside of the table.