-
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(event): #24 add onGridStateChanged and onPaginationChanged events (
#28) * feat(event): add onGridStateChanged and onPaginationChanged events - add onGridStateChanged - add onPaginationChanged event that Angular-Slickgrid can then trigger Grid State onGridStateChanged event - add better onFilterChanged & onSortChanged events * refactor(event): add aurelia slickgrid event prefix * refactor(code): remove unnecessary self when bind this is enough * fix(build): fix Build lib errors of object can be undefined
- Loading branch information
1 parent
3d21548
commit b657e75
Showing
14 changed files
with
202 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 1 addition & 2 deletions
3
aurelia-slickgrid/src/aurelia-slickgrid/models/gridState.interface.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
aurelia-slickgrid/src/aurelia-slickgrid/models/gridStateChange.interface.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { CurrentFilter, CurrentSorter, GridState, GridStateType, Pagination } from './../models/index'; | ||
|
||
export interface GridStateChange { | ||
/** Changes that were triggered */ | ||
change?: { | ||
newValues: CurrentFilter[] | CurrentSorter[] | Pagination; | ||
type: GridStateType; | ||
}; | ||
|
||
/** Current grid state */ | ||
gridState?: GridState; | ||
} |
5 changes: 5 additions & 0 deletions
5
aurelia-slickgrid/src/aurelia-slickgrid/models/gridStateType.enum.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
export enum GridStateType { | ||
filter = 'filter', | ||
pagination = 'pagination', | ||
sorter = 'sorter' | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.