table_setRowPinning

Function: table_setRowPinning()

ts
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`](../../index/interfaces/RowPinningState.md)\>

Returns

void

Example

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