Skip to content

Commit cd6955d

Browse files
committed
refactor(*): Added changelog
Renamed data row argument
1 parent 0ffd073 commit cd6955d

File tree

3 files changed

+13
-6
lines changed

3 files changed

+13
-6
lines changed

CHANGELOG.md

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

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

5+
## 12.1.2
6+
- `igxGrid`
7+
- The column formatter callback signature now accepts the row data as an additional argument:
8+
```typescript formatter(value: any, rowData?: any)```
9+
The `rowData` argument may be `undefined` in remote scenarios/applying the callback on filtering labels
10+
so make sure to check its availability.
11+
512
## 12.1.0
613

714
### New Features
@@ -32,7 +39,7 @@ All notable changes for each version of this project will be documented in this
3239
```
3340
- `IgxGrid`, `IgxTreeGrid`, `IgxHierarchicalGrid`
3441
- Added `batchEditing` - an `Input` property for controlling what type of transaction service is provided for the grid.
35-
Setting `<igx-grid [batchEditing]="true">` is the same as providing `[{ provide: IgxGridTransaction, useClass: IgxTransactionService }]`.
42+
Setting `<igx-grid [batchEditing]="true">` is the same as providing `[{ provide: IgxGridTransaction, useClass: IgxTransactionService }]`.
3643
- **Deprecation** - Providing a transaction service for the grid via `providers: [IgxTransactionService]` is now deprecated and will be removed in a future patch.
3744
Instead, use the new `batchEditing` property to control the grid's Transactions.
3845

@@ -46,14 +53,14 @@ All notable changes for each version of this project will be documented in this
4653
- `IgxGridCellComponent`, `IgxTreeGridCellComponent`, `IgxHierarchicalGridCellComponent` are no longer exposed in the public API. Instead, a new class `IgxGridCell` replaces all of these. It is a facade class which exposes only the public API of the above mentioned. Automatic migration will change these imports with `CellType`, which is the interface implemented by `IgxGridCell`
4754
- **Behavioral changes**
4855
- `getCellByKey`, `getCellByColumn`, `getCellByColumnVisibleIndex`, `row.cells`, `column.cells`, `grid.selectedCells` now return an `IgxGridCell` the `CellType` interface.
49-
- `cell` in `IGridCellEventArgs` is now `CellType`. `IGridCellEventArgs` are emitetd in `cellClick`, `selected`, `contextMenu` and `doubleClick` events.
56+
- `cell` in `IGridCellEventArgs` is now `CellType`. `IGridCellEventArgs` are emitetd in `cellClick`, `selected`, `contextMenu` and `doubleClick` events.
5057
- `let-cell` property in cell template is now `CellType`.
5158
- `getCellByColumnVisibleIndex` is now deprecated and will be removed in next major version. Use `getCellByKey`, `getCellByColumn` instead.
5259

5360
- `Transactions`
5461
- Added `IgxFlatTransactionFactory` - the singleton service instantiates a new `TransactionService<Transaction, State>` given a `transaction type`.
5562
- Added `IgxHierarchicalTransactionFactory` - the singleton service instantiates a new `HierarchicalTransactionService<HierarchicalTransaction, HierarchicalState>` given a `transaction type`.
56-
63+
5764
- `Toolbar Actions`
5865
- Exposed a new input property `overlaySettings` for all column actions (`hiding` | `pinning` | `advanced filtering` | `exporter`). Example below:
5966

projects/igniteui-angular/src/lib/grids/cell.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ export class IgxGridCellComponent implements OnInit, OnChanges, OnDestroy {
154154
* @memberof IgxGridCellComponent
155155
*/
156156
@Input()
157-
public formatter: (value: any, data?: any) => any;
157+
public formatter: (value: any, rowData?: any) => any;
158158

159159
/**
160160
* Gets the cell template context object.

projects/igniteui-angular/src/lib/grids/columns/column.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -602,7 +602,7 @@ export class IgxColumnComponent implements AfterContentInit, OnDestroy {
602602
* @example
603603
* ```typescript
604604
* const column = this.grid.getColumnByName('Address');
605-
* const addressFormatter = (address: string, data: any) => data.privacyEnabled ? 'unknown' : address;
605+
* const addressFormatter = (address: string, rowData: any) => data.privacyEnabled ? 'unknown' : address;
606606
* column.formatter = addressFormatter;
607607
* ```
608608
*
@@ -611,7 +611,7 @@ export class IgxColumnComponent implements AfterContentInit, OnDestroy {
611611
@notifyChanges()
612612
@WatchColumnChanges()
613613
@Input()
614-
public formatter: (value: any, data?: any) => any;
614+
public formatter: (value: any, rowData?: any) => any;
615615

616616
/**
617617
* The summaryFormatter is used to format the display of the column summaries.

0 commit comments

Comments
 (0)