table_setOptions

Function: table_setOptions()

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