Docs
CodeRabbit
Cloudflare
AG Grid
SerpAPI
Netlify
OpenRouter
WorkOS
Clerk
Electric
PowerSync
Sentry
Railway
Prisma
Strapi
Unkey
CodeRabbit
Cloudflare
AG Grid
SerpAPI
Netlify
OpenRouter
WorkOS
Clerk
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
Static Functions API Reference
Legacy API Reference
Static Functions API Reference

table_setOptions

Function: table_setOptions()

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

Defined in: core/table/coreTablesFeature.utils.ts:106

Updates the table options object.

The updater receives the current resolved options and the merged result is immediately assigned to the table instance.

Type Parameters

TFeatures

TFeatures extends TableFeatures

TData

TData extends RowData

Parameters

table

Table_Internal<TFeatures, TData>

updater

Updater<TableOptions<TFeatures, TData>>

Returns

void

Example

ts
table_setOptions(table, (old) => old)
table_setOptions(table, (old) => old)