table_mergeOptions

Function: table_mergeOptions()

ts
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)