Skip to main content

table_resetColumnPinning

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

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

Defined in: features/column-pinning/columnPinningFeature.utils.ts:318

Resets columnPinning to the configured initial state or feature default.

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

Type Parameters

TFeatures

TFeatures extends TableFeatures

TData

TData extends RowData

Parameters

table

Table_Internal<TFeatures, TData>

defaultState?

boolean

Returns

void

Example

table_resetColumnPinning(table)
table_resetColumnPinning(table, true)