table_mergeOptions

Function: table_mergeOptions()

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

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

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)