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_toggleAllColumnsVisible

Function: table_toggleAllColumnsVisible()

ts
function table_toggleAllColumnsVisible<TFeatures, TData>(table, value?): void;
function table_toggleAllColumnsVisible<TFeatures, TData>(table, value?): void;

Defined in: features/column-visibility/columnVisibilityFeature.utils.ts:303

Shows or hides every hideable leaf column.

Columns that cannot hide stay visible when toggling all columns off.

Type Parameters

TFeatures

TFeatures extends TableFeatures

TData

TData extends RowData

Parameters

table

Table_Internal<TFeatures, TData>

value?

boolean

Returns

void

Example

ts
table_toggleAllColumnsVisible(table)
table_toggleAllColumnsVisible(table)