Skip to content
This repository was archived by the owner on Jun 1, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions src/app/modules/angular-slickgrid/models/grouping.interface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,18 @@ import { SortDirectionNumber } from './sortDirectionNumber.enum';
export type GroupingGetterFunction = (value: any) => string;

export interface Grouping {
/** Getter of the Column to be Grouped */
getter?: string | GroupingGetterFunction;

/** Grouping Aggregators array */
aggregators?: Aggregator[];

/** Defaults to false, are we aggregating child grouping? */
aggregateChildGroups?: boolean;

/** Defaults to false, are the Aggregator Collapsed when grid is loaded */
aggregateCollapsed?: boolean;

/** Defaults to false, are we aggregating empty grouping? */
aggregateEmpty?: boolean;

/** Defaults to false, is the Group Collapsed when grid is loaded */
collapsed?: boolean;

Expand All @@ -27,6 +30,9 @@ export interface Grouping {
/** String Formatter of the Grouping Header */
formatter?: (g: GroupingFormatterItem) => string;

/** Getter of the Column to be Grouped */
getter?: string | GroupingGetterFunction;

/** Defaults to false, lazy load the Group Totals Calculation */
lazyTotalsCalculation?: boolean;

Expand Down