Skip to content

Commit b88b095

Browse files
Remove rowData and rowID props, use data and key (#10523)
* refactor(grid): remove rowData and rowID properties, use data and key Co-authored-by: dobromirts <[email protected]>
1 parent 6ed5a11 commit b88b095

File tree

82 files changed

+30750
-798
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

82 files changed

+30750
-798
lines changed

CHANGELOG.md

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,11 +80,25 @@ All notable changes for each version of this project will be documented in this
8080
Use `IgxGridToolbarComponent`, `IgxGridToolbarHidingComponent`, `IgxGridToolbarPinningComponent` instead.
8181
- **Breaking Change** - The `rowSelected` event is renamed to `rowSelectionChanging` to better reflect its function.
8282
- **Breaking Change** - The `columnSelected` event is renamed to `columnSelectionChanging` to better reflect its function.
83-
- `igxGrid`
83+
- **Breaking Change** - `columnsCollection` is removed. Use `columns` instead.
84+
- `RowType`, `IgxRowDirective`
85+
- **Breaking Change** - `rowData` and `rowID` deprecated properties are now removed. Use `data` and `key` instead. Use `ng update` for automatic migration.
86+
- `igxRowSelector`
87+
- `rowID` in the context object of the `igxRowSelector` is now deprecated and will be removed in future version. Use `key` property instead:
88+
```html
89+
<igx-grid [data]="data", [rowSelection]="'multiple'" primaryKey="ID">
90+
<igx-column field="Name"></igx-column>
91+
<igx-column field="Age"></igx-column>
92+
93+
<ng-template igxRowSelector let-rowContext>
94+
<span>{{ rowContext.key }}</span>
95+
</ng-template>
96+
</igx-grid>
97+
```
98+
- `IgxColumnActionsComponent`
99+
- **Breaking Change** - Input `columns` has been removed. Use `igxGrid` `columns` input instead.
100+
- `igxGrid`
84101
- Exposed a `groupStrategy` input that functions similarly to `sortStrategy`, allowing customization of the grouping behavior of the grid. Please, refer to the [Group By ](https://www.infragistics.com/products/ignite-ui-angular/angular/components/grid/groupby) topic for more information.
85-
- `IgxColumnActionsComponent`
86-
- **Breaking Change** - The following input has been removed
87-
- Input `columns`. Use `igxGrid` `columns` input instead.
88102
- `IgxCarousel`
89103
- **Breaking Changes** -The carousel animation type `CarouselAnimationType` is renamed to `HorizontalAnimationType`.
90104

0 commit comments

Comments
 (0)