Skip to content

RowGroupRenderConfig

Group row rendering customization options. Controls how group header rows are displayed in the GroupingRowsPlugin.

import { GroupingRowsPlugin } from '@toolbox-web/grid/all';
new GroupingRowsPlugin({
groupOn: (row) => [row.department, row.team],
render: {
// Group row spans all columns
fullWidth: true,
// Custom label format
formatLabel: (value, depth, key) => {
if (depth === 0) return `Department: ${value}`;
return `Team: ${value}`;
},
// Show aggregates in group rows (when not fullWidth)
aggregators: {
salary: 'sum',
age: 'avg',
},
// Custom CSS class
class: 'my-group-row',
},
});
PropertyTypeDescription
fullWidth?booleanIf true, group rows span all columns (single full-width cell). Default false.
formatLabel?(value: unknown, depth: number, key: string) => stringOptional label formatter override. Receives raw group value + depth.
aggregators?Record<string, AggregatorRef>Optional aggregate overrides per field for group summary cells (only when not fullWidth).
class?stringAdditional CSS class applied to each group row root element.
AI assistants: For complete API documentation, implementation guides, and code examples for this library, see https://raw.githubusercontent.com/OysteinAmundsen/toolbox/main/llms-full.txt