Skip to main content

table_setRowPinning

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

function table_setRowPinning<TFeatures, TData>(table, updater): void;

Defined in: features/row-pinning/rowPinningFeature.utils.ts:43

Routes a row pinning updater through the table's row-pinning change handler.

The updater may be a next { top, bottom } state or a function of the previous state, matching the instance table.setRowPinning behavior.

Type Parameters

TFeatures

TFeatures extends TableFeatures

TData

TData extends RowData

Parameters

table

Table_Internal<TFeatures, TData>

updater

Updater<RowPinningState>

Returns

void

Example

table_setRowPinning(table, (old) => ({ ...old, top: [rowId] }))