Skip to content

Commit c9a1064

Browse files
authored
Merge pull request #6084 from IgniteUI/ddincheva/summaryChangelog
Access all grid data from each summary
2 parents 18eddff + 57b5b1a commit c9a1064

File tree

1 file changed

+17
-3
lines changed

1 file changed

+17
-3
lines changed

CHANGELOG.md

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ All notable changes for each version of this project will be documented in this
3030
- The header text of the columns and the column groups now has the `title` attribute set to it in order to expose a native browser tooltip.
3131

3232
### RTL Support
33-
Most of the components in the framework now have full right-to-left (RTL) support via the newly included RTL themes.
33+
Most of the components in the framework now have full right-to-left (RTL) support via the newly included RTL themes.
3434

35-
For CSS-based projects add `node_modules/igniteui-angular/styles/igniteui-angular-rtl.css` to your angular.json styles collection.
35+
For CSS-based projects add `node_modules/igniteui-angular/styles/igniteui-angular-rtl.css` to your angular.json styles collection.
3636

3737
For Sass-based projects pass `$direction` to the `igx-core` mixin in your root stylesheet.
3838

@@ -48,7 +48,7 @@ Currently the following components have only partial RTL support:
4848
- Circular Progress Indicator (igx-circular-bar)
4949

5050
We plan on adding support for the aforementioned components in the upcoming releases.
51-
51+
5252
### New Features
5353

5454
- Columns now expose the `cellStyles` property which allows conditional styling of the column cells. Similar to `cellClasses` it accepts an object literal where the keys are style properties and the values are expressions for evaluation.
@@ -70,6 +70,20 @@ The callback signature for both `cellStyles` and `cellClasses` is now changed to
7070

7171
- `IgxChip`
7272
- **Breaking Change** The `originalEvent` property for the events `onMoveStart`, `onMoveEnd`, `onClick` and `onSelection` now provides the events, passed from the `igxDrag` directive. The passed original events are in other words the previous events that triggered the `igxChip` ones. They also have original events until a browser event is reached.
73+
- `IgxGrid` - Now you can access all grid data inside the custom column summary. Two additional optional parameters are introduced in the IgxSummaryOperand `operate` method.
74+
75+
```typescript
76+
class MySummary extends IgxNumberSummaryOperand {
77+
constructor() {
78+
super();
79+
}
80+
operate(columnData: any[], allGridData = [], fieldName?): IgxSummaryResult[] {
81+
const result = super.operate(allData.map(r => r[fieldName]));
82+
result.push({ key: 'test', label: 'Total Discounted', summaryResult: allData.filter((rec) => rec.Discontinued).length });
83+
return result;
84+
}
85+
}
86+
```
7387

7488
## 8.2.0
7589
### New theme

0 commit comments

Comments
 (0)