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

table_mergeOptions

ts
function table_mergeOptions<TFeatures, TData>(table, newOptions): TableOptions<TFeatures, TData>;
function table_mergeOptions<TFeatures, TData>(table, newOptions): TableOptions<TFeatures, TData>;

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

Merges new table options with the current resolved options.

If options.mergeOptions is provided, it owns the merge behavior; otherwise options are shallow-merged. Static options that should never change after initialization are restored on a fresh object so framework merge helpers may return readonly getter/proxy objects.

Type Parameters

TFeatures

TFeatures extends TableFeatures

TData

TData extends RowData

Parameters

table

Table_Internal<TFeatures, TData>

newOptions

TableOptions<TFeatures, TData>

Returns

TableOptions<TFeatures, TData>

Example

ts
const options = table_mergeOptions(table, nextOptions)
const options = table_mergeOptions(table, nextOptions)