Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 `<igc-grid-lite-column>` elements instead of the `columns` property.
The `columns` property is now read-only and returns the current column configuration.

Before:

```html
<igc-grid-lite .data=${data} .columns=${columns}></igc-grid-lite>
```

```ts
const columns: ColumnConfiguration<User>[] = [
{ key: 'id', headerText: 'User ID', type: 'number', filter: true, sort: true },
{ key: 'name', filter: true, sort: true },
];
```

After:

```html
<igc-grid-lite .data=${data}>
<igc-grid-lite-column
key="id"
header-text="User ID"
type="number"
.filter=${true}
.sort=${true}
></igc-grid-lite-column>
<igc-grid-lite-column
key="name"
.filter=${true}
.sort=${true}
></igc-grid-lite-column>
</igc-grid-lite>
```

- **BREAKING:** Renamed `GridSortConfiguration` type to `GridLiteSortingOptions`.
- **BREAKING:** Renamed `IgcGridLite.sortConfiguration` property to `sortingOptions`.
- **BREAKING:** Renamed `IgcGridLite.sortExpressions` property to `sortingExpressions`.
Expand Down