Skip to content

Commit e3a5e62

Browse files
authored
Merge pull request #6083 from IgniteUI/ddincheva/summaryChangelog-82
Access all grid data from each summary
2 parents 0d7e03a + a3b396a commit e3a5e62

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
@@ -11,9 +11,9 @@ All notable changes for each version of this project will be documented in this
1111
- 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.
1212

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

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

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

@@ -29,7 +29,7 @@ Currently the following components have only partial RTL support:
2929
- Circular Progress Indicator (igx-circular-bar)
3030

3131
We plan on adding support for the aforementioned components in the upcoming releases.
32-
32+
3333
### New Features
3434

3535
- 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.
@@ -51,6 +51,20 @@ The callback signature for both `cellStyles` and `cellClasses` is now changed to
5151

5252
- `IgxChip`
5353
- **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.
54+
- `IgxGrid` - Now you can access all grid data inside the custom column summary. Two additional optional parameters are introduced in the IgxSummaryOperand `operate` method.
55+
56+
```typescript
57+
class MySummary extends IgxNumberSummaryOperand {
58+
constructor() {
59+
super();
60+
}
61+
operate(columnData: any[], allGridData = [], fieldName?): IgxSummaryResult[] {
62+
const result = super.operate(allData.map(r => r[fieldName]));
63+
result.push({ key: 'test', label: 'Total Discounted', summaryResult: allData.filter((rec) => rec.Discontinued).length });
64+
return result;
65+
}
66+
}
67+
```
5468

5569
## 8.2.0
5670
### New theme

0 commit comments

Comments
 (0)