Skip to content

Commit

Permalink
Added unsubscribeOnScroll to Grid (#2547)
Browse files Browse the repository at this point in the history
  • Loading branch information
reisfmb authored and alansemenov committed May 14, 2022
1 parent 785ede8 commit 4ebd9c2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/resources/assets/admin/common/js/ui/grid/Grid.ts
Original file line number Diff line number Diff line change
Expand Up @@ -476,6 +476,10 @@ export class Grid<T extends Slick.SlickData>
this.slickGrid.onScroll.subscribe(callback);
}

unsubscribeOnScroll(callback: (e: any) => void) {
this.slickGrid.onScroll.unsubscribe(callback);
}

// scrolled event is for the mouse wheel only
subscribeOnScrolled(callback: (e: Event) => void) {
if (this.getHTMLElement().addEventListener) {
Expand Down

0 comments on commit 4ebd9c2

Please sign in to comment.