Skip to content

Releases: nivekcode/ng-sortgrid

v5.1.0

12 Oct 07:24
Compare
Choose a tag to compare

5.1.0 (2021-10-12)

Features

  • 🎸 (activeclass) ng-sg-active class implementation (c570433)

v5.0.0

13 Sep 07:37
f224ffb
Compare
Choose a tag to compare

5.0.0 (2021-09-13)

Features

  • 🎸 (upgrade) upgrade to Angular 12 (238aeb8), closes #72

BREAKING CHANGES

  • 🧨 Upgrade to Angular 12

v4.0.3

21 Nov 10:31
Compare
Choose a tag to compare

4.0.3 (2020-11-21)

Bug Fixes

  • 🐛 add licence to published package.json (6780084)

v4.0.2

19 Nov 22:14
0f0a1f9
Compare
Choose a tag to compare

4.0.2 (2020-11-19)

Bug Fixes

  • 🐛 add licence to package.json (87470b2)

v4.0.1

29 Aug 10:19
f1e8a39
Compare
Choose a tag to compare

4.0.1 (2020-08-29)

Bug Fixes

  • peerdeps: adjust version of Angular peer deps to 10 (e8a5740)

v4.0.0

27 Aug 13:33
f3d2828
Compare
Choose a tag to compare

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

17 Aug 12:12
067f724
Compare
Choose a tag to compare

3.0.3 (2020-08-17)

Bug Fixes

  • clickhandler: remove unused event param (6a3310a)

v3.0.2

22 May 10:37
adce246
Compare
Choose a tag to compare

3.0.2 (2020-05-22)

Bug Fixes

  • styles: distribute stylesheet (15c0920)

v3.0.1

02 Mar 20:24
cf063c6
Compare
Choose a tag to compare

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

27 Feb 07:16
f395389
Compare
Choose a tag to compare

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;
}