Skip to main content

table_setOptions

还没翻译译自英文(tanstack.com)本页 20 段都还没译

function table_setOptions<TFeatures, TData>(
   table,
   updater,
   options?): void;

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

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

options?

syncExternalState?

boolean

Returns

void

Example

table_setOptions(table, (old) => old)
table_setOptions(table, (old) => old, { syncExternalState: false })