Releases: nivekcode/ng-sortgrid
Releases · nivekcode/ng-sortgrid
v5.1.0
5.1.0 (2021-10-12)
Features
- 🎸 (activeclass) ng-sg-active class implementation (c570433)
v5.0.0
5.0.0 (2021-09-13)
Features
- 🎸 (upgrade) upgrade to Angular 12 (238aeb8), closes #72
BREAKING CHANGES
v4.0.3
4.0.3 (2020-11-21)
Bug Fixes
- 🐛 add licence to published package.json (6780084)
v4.0.2
4.0.2 (2020-11-19)
Bug Fixes
- 🐛 add licence to package.json (87470b2)
v4.0.1
4.0.1 (2020-08-29)
Bug Fixes
- peerdeps: adjust version of Angular peer deps to 10 (e8a5740)
v4.0.0
4.0.0 (2020-08-27)
feature
-
upgrade: upgrade ng-sortgrid to Angular 10 (b7534f1)
-
Merge pull request #47 from kreuzerk/feature/angular10 (269d013), closes #47
BREAKING CHANGES
- upgrade sortgrid to Angular 10
- upgrade: upgrade ng-sortgrid to Angular 10
v3.0.3
3.0.3 (2020-08-17)
Bug Fixes
- clickhandler: remove unused event param (6a3310a)
v3.0.2
3.0.2 (2020-05-22)
Bug Fixes
- styles: distribute stylesheet (15c0920)
v3.0.1
3.0.1 (2020-03-02)
Bug Fixes
- selection: reset selection if we click on another item (4aa76f0)
- selection: set the correct item selection state (57485d5)
The sortgrid remembers
3.0.0 (2020-02-27)
Features
- sort: emit previous and current change on sort event (b69abaf)
BREAKING CHANGES
- sort: The sort event now emits a NgsgOrderChange instead of an array
Migration path
The sorted
event now emits a NgsgOrderChange and not an Array. The NgsgOrderChange has the following interface.
export interface NgsgOrderChange<T> { previousOrder: T[]; currentOrder: T[]; }
How to migrate
Before
// Method that is called from template (sorted)="applyOrder($event)"
public applyOrder(newOrder: number[]): void {
this.sortOrder = newOrder;
}
After
// Method that is called from template (sorted)="applyOrder($event)"
public applyOrder(newOrder: NgsgOrderChange<number>): void {
this.sortOrder = newOrder.currentOrder;
}