From 87b64c2a9f867ea297b9294e841acae54c0e03e9 Mon Sep 17 00:00:00 2001 From: Ghislain Beaulac Date: Wed, 3 Jun 2020 08:02:45 -0400 Subject: [PATCH] fix(types): add missing option flags in grouping interface --- .../angular-slickgrid/models/grouping.interface.ts | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/app/modules/angular-slickgrid/models/grouping.interface.ts b/src/app/modules/angular-slickgrid/models/grouping.interface.ts index 92dcd1007..f95c459fd 100644 --- a/src/app/modules/angular-slickgrid/models/grouping.interface.ts +++ b/src/app/modules/angular-slickgrid/models/grouping.interface.ts @@ -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; @@ -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;