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

Function: 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:78

Merges new table options with the current resolved options.

If options.mergeOptions is provided, it owns the merge behavior; otherwise options are shallow-merged.

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)