Docs
CodeRabbit
Cloudflare
AG Grid
SerpAPI
Netlify
OpenRouter
WorkOS
Clerk
Electric
PowerSync
Sentry
Railway
Prisma
Strapi
Unkey
CodeRabbit
Cloudflare
AG Grid
SerpAPI
Netlify
OpenRouter
WorkOS
Clerk
Electric
PowerSync
Sentry
Railway
Prisma
Strapi
Unkey
Table API Reference
Column API Reference
Row API Reference
Cell API Reference
Header API Reference
Features API Reference
Static Functions API Reference
Legacy API Reference
Static Functions API Reference

table_resetColumnPinning

Function: table_resetColumnPinning()

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

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

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 left/right arrays.

Type Parameters

TFeatures

TFeatures extends TableFeatures

TData

TData extends RowData

Parameters

table

Table_Internal<TFeatures, TData>

defaultState?

boolean

Returns

void

Example

ts
table_resetColumnPinning(table)
table_resetColumnPinning(table, true)
table_resetColumnPinning(table)
table_resetColumnPinning(table, true)