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_setColumnSizing

Function: table_setColumnSizing()

ts
function table_setColumnSizing<TFeatures, TData>(table, updater): void;
function table_setColumnSizing<TFeatures, TData>(table, updater): void;

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

Routes a committed column sizing updater through the table's sizing handler.

The updater may be a next size map or a function of the previous map, matching the instance table.setColumnSizing behavior.

Type Parameters

TFeatures

TFeatures extends TableFeatures

TData

TData extends RowData

Parameters

table

Table_Internal<TFeatures, TData>

updater

Updater<ColumnSizingState>

Returns

void

Example

ts
table_setColumnSizing(table, (old) => ({ ...old, age: 96 }))
table_setColumnSizing(table, (old) => ({ ...old, age: 96 }))