Skip to content

Commit 3e45a71

Browse files
authored
Merge pull request #6003 from IgniteUI/rkaraivanov/cell-styles-changelog
docs(*): Add changelog for conditional cell styling
2 parents 74c6a66 + 5ab4b43 commit 3e45a71

File tree

1 file changed

+24
-6
lines changed

1 file changed

+24
-6
lines changed

CHANGELOG.md

Lines changed: 24 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,24 @@
22

33
All notable changes for each version of this project will be documented in this file.
44

5+
## 8.2.4
6+
7+
### New Features
8+
9+
- 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.
10+
```typescript
11+
styles = {
12+
color: '#123456',
13+
'font-family': 'monospace'
14+
'font-weight': (_, __, value) => value.startsWith('!') : 'red' : 'inherit'
15+
};
16+
```
17+
The callback signature for both `cellStyles` and `cellClasses` is now changed to
18+
19+
```typescript
20+
(rowData: any, columnKey: string, cellValue: any, rowIndex: number) => boolean
21+
```
22+
523
## 8.2.3
624
- `IgxTextHighlightDirective` - The default highlight directive styles have been moved to a Sass theme - `igx-highlight-theme`; You can modify the resting and active background and text color styles of the directive by passing the respective properties to the Sass theme. You can still pass your own CSS classes to the highlight directive via the cssClass and activeCssClass inputs.
725

@@ -10,10 +28,10 @@ All notable changes for each version of this project will be documented in this
1028

1129
## 8.2.0
1230
### New theme
13-
Ignite UI for angular now have a new theme that mimics Microsoft "Fluent" design system.
14-
Depending on your use case you can use one of the following mixins:
15-
`igx-fluent-theme` and `igx-fluent-dark-theme`
16-
31+
Ignite UI for angular now have a new theme that mimics Microsoft "Fluent" design system.
32+
Depending on your use case you can use one of the following mixins:
33+
`igx-fluent-theme` and `igx-fluent-dark-theme`
34+
1735
We also added two new pallets that go with the new theme, `$fluent-word-palette` and `$fluent-excel-palette`.
1836

1937
Next example shows how you can use the Fluent theme.
@@ -33,7 +51,7 @@ Next example shows how you can use the Fluent theme.
3351
### Theme Changes
3452
`igx-badge-theme` - Removed the `$disable-shadow` property to mitigate confusion when specifying `$shadow` explicitly.
3553

36-
For more information about the theming please read our [documentation](https://www.infragistics.com/products/ignite-ui-angular/angular/components/themes/index.html)
54+
For more information about the theming please read our [documentation](https://www.infragistics.com/products/ignite-ui-angular/angular/components/themes/index.html)
3755

3856
### New Features
3957
- `IgxGrid`, `IgxTreeGrid`, `IgxHierarchicalGrid`
@@ -127,7 +145,7 @@ For more information about the theming please read our [documentation](https://w
127145
- **Breaking Change** Interfaces `IgxDropEventArgs` is renamed to `IDropDroppedEventArgs`.
128146
- **Breaking Change** Outputs `enter`, `over`, `leave`(former `onEnter`, `onOver`, `onLeave`) now have arguments of type `IDropBaseEventArgs`
129147
- **Breaking Change** Output `dropped` (former `onDrop`) now have arguments of type `IDropDroppedEventArgs`
130-
148+
131149
## 8.1.4
132150
- `IgxDialog` new @Input `positionSettings` is now available. It provides the ability to get/set both position and animation settings of the Dialog component.
133151

0 commit comments

Comments
 (0)