Skip to content

Commit dce3248

Browse files
author
Katrin
authored
chore(changelog): Add short description for groupRecord in changelog (#12478)
* chore(changelog): add short description for groupRecord * chore(changelog): fix groupRecord parameter desctiption * chore(grid-summary): add exposed groupRecord property in template * chore(API doc): pass groupRecord in result object
1 parent a752390 commit dce3248

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ All notable changes for each version of this project will be documented in this
1818
* - `IgxColumnComponent` - `ColumnType` (for example the column parameter in `igxFilterCellTemplate`)
1919
* - `IgxGridCell` - `CellType` (for example the cell parameter in `igxCell` template)
2020

21+
- A new `groupRecord` parameter has been exposed in `operate` method, that is an `IGroupByRecord` object describing the grouped row in case grouping is applied.
22+
2123
- `excelStyleHeaderIconTemplate` - Gets/Sets the excel style header icon.
2224
- `groupRowTemplate` - Gets/Sets the template reference for the group row.
2325
- `headSelectorTemplate` - Gets/Sets the header row selector template.

projects/igniteui-angular/src/lib/grids/summaries/grid-summary.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ export class IgxSummaryOperand {
6161
* constructor() {
6262
* super();
6363
* }
64-
* public operate(data: any[], allData: any[], fieldName: string): IgxSummaryResult[] {
64+
* public operate(data: any[], allData: any[], fieldName: string, groupRecord: IGroupByRecord): IgxSummaryResult[] {
6565
* const result = [];
6666
* result.push({
6767
* key: "test",
@@ -151,8 +151,8 @@ export class IgxNumberSummaryOperand extends IgxSummaryOperand {
151151
* constructor() {
152152
* super();
153153
* }
154-
* public operate(data: any[], allData: any[], fieldName: string): IgxSummaryResult[] {
155-
* const result = super.operate(data, allData, fieldName);
154+
* public operate(data: any[], allData: any[], fieldName: string, groupRecord: IGroupByRecord): IgxSummaryResult[] {
155+
* const result = super.operate(data, allData, fieldName, groupRecord);
156156
* result.push({
157157
* key: "avg",
158158
* label: "Avg",
@@ -244,8 +244,8 @@ export class IgxDateSummaryOperand extends IgxSummaryOperand {
244244
* constructor() {
245245
* super();
246246
* }
247-
* public operate(data: any[], allData: any[], fieldName: string): IgxSummaryResult[] {
248-
* const result = super.operate(data, allData, fieldName);
247+
* public operate(data: any[], allData: any[], fieldName: string, groupRecord: IGroupByRecord): IgxSummaryResult[] {
248+
* const result = super.operate(data, allData, fieldName, groupRecord);
249249
* result.push({
250250
* key: "deadline",
251251
* label: "Deadline Date",

0 commit comments

Comments
 (0)