table_setRowPinning
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
Returns
void
Example
table_setRowPinning(table, (old) => ({ ...old, top: [rowId] }))