Docs
CodeRabbit
Cloudflare
AG Grid
SerpAPI
Netlify
Neon
WorkOS
Clerk
Convex
Electric
PowerSync
Sentry
Railway
Prisma
Strapi
Unkey
CodeRabbit
Cloudflare
AG Grid
SerpAPI
Netlify
Neon
WorkOS
Clerk
Convex
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
Legacy API Reference
Enterprise
Features API Reference

TableOptions_ColumnGrouping

Interface: TableOptions_ColumnGrouping

Defined in: features/column-grouping/columnGroupingFeature.types.ts:152

Properties

enableGrouping?

ts
optional enableGrouping: boolean;

Defined in: features/column-grouping/columnGroupingFeature.types.ts:156

Enables/disables grouping for the table.


groupedColumnMode?

ts
optional groupedColumnMode: false | "reorder" | "remove";

Defined in: features/column-grouping/columnGroupingFeature.types.ts:160

Grouping columns are automatically reordered by default to the start of the columns list. If you would rather remove them or leave them as-is, set the appropriate mode here.


manualGrouping?

ts
optional manualGrouping: boolean;

Defined in: features/column-grouping/columnGroupingFeature.types.ts:164

Enables manual grouping. If this option is set to true, the table will not automatically group rows using getGroupedRowModel() and instead will expect you to manually group the rows before passing them to the table. This is useful if you are doing server-side grouping and aggregation.


onGroupingChange?

ts
optional onGroupingChange: OnChangeFn<GroupingState>;

Defined in: features/column-grouping/columnGroupingFeature.types.ts:168

If this function is provided, it will be called when the grouping state changes and you will be expected to manage the state yourself. You can pass the managed state back to the table via the tableOptions.state.grouping option.