diff --git a/CHANGELOG.md b/CHANGELOG.md index 8152bcc..2bef8d4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,41 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed +- **BREAKING:** Column configuration is now declarative using `` elements instead of the `columns` property. + The `columns` property is now read-only and returns the current column configuration. + + Before: + + ```html + + ``` + + ```ts + const columns: ColumnConfiguration[] = [ + { key: 'id', headerText: 'User ID', type: 'number', filter: true, sort: true }, + { key: 'name', filter: true, sort: true }, + ]; + ``` + + After: + + ```html + + + + + ``` + - **BREAKING:** Renamed `GridSortConfiguration` type to `GridLiteSortingOptions`. - **BREAKING:** Renamed `IgcGridLite.sortConfiguration` property to `sortingOptions`. - **BREAKING:** Renamed `IgcGridLite.sortExpressions` property to `sortingExpressions`.