table_resetRowPinning

Function: table_resetRowPinning()

ts
function table_resetRowPinning<TFeatures, TData>(table, defaultState?): void;

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

Resets rowPinning to the configured initial state or feature default.

With no argument, the reset clones table.initialState.rowPinning when it exists. Passing true ignores initial state and resets to empty top/bottom arrays.

Type Parameters

TFeatures

TFeatures extends TableFeatures

TData

TData extends RowData

Parameters

table

Table_Internal\<`TFeatures`, `TData`\>

defaultState?

boolean

Returns

void

Example

ts
table_resetRowPinning(table)
table_resetRowPinning(table, true)