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

Function: table_resetHeaderSizeInfo()

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

Defined in: features/column-resizing/columnResizingFeature.utils.ts:303

Resets columnResizing to the configured initial state or feature default.

With no argument, the reset clones table.initialState.columnResizing when it exists. Passing true ignores initial state and resets to the no-drag default state.

Type Parameters

TFeatures

TFeatures extends TableFeatures

TData

TData extends RowData

Parameters

table

Table_Internal<TFeatures, TData>

defaultState?

boolean

Returns

void

Example

ts
table_resetHeaderSizeInfo(table)
table_resetHeaderSizeInfo(table, true)
table_resetHeaderSizeInfo(table)
table_resetHeaderSizeInfo(table, true)