Docs
Cloudflare
CodeRabbit
Railway
WorkOS
AG Grid
Netlify
SerpAPI
Clerk
OpenRouter
Sentry
Prisma
Electric
Unkey
Cloudflare
CodeRabbit
Railway
WorkOS
AG Grid
Netlify
SerpAPI
Clerk
OpenRouter
Sentry
Prisma
Electric
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_resetColumnSizing

Function: table_resetColumnSizing()

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

Defined in: features/column-sizing/columnSizingFeature.utils.ts:277

Resets columnSizing to the configured initial state or feature default.

With no argument, the reset clones table.initialState.columnSizing when it exists. Passing true ignores initial state and resets to {}.

Type Parameters

TFeatures

TFeatures extends TableFeatures

TData

TData extends RowData

Parameters

table

Table_Internal<TFeatures, TData>

defaultState?

boolean

Returns

void

Example

ts
table_resetColumnSizing(table)
table_resetColumnSizing(table, true)
table_resetColumnSizing(table)
table_resetColumnSizing(table, true)