-
-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(backend): add cancellable onBeforeSort & revert sort on error
- in previous code, if an error happens on the backend server while querying, the sort icons would still be changed and we had no clue of the previous sort icons, this PR bring this functionality that if an error occurs it will rollback to previous sort icons. - this PR also adds the option to use a new SlickGrid event `onBeforeSort` to optionally cancel the sort all together (for example we might want to cancel or not perform the sort if we have a cell edit that is still in process)
- Loading branch information
1 parent
aa9597a
commit 958f823
Showing
20 changed files
with
396 additions
and
134 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
6 changes: 6 additions & 0 deletions
6
examples/webpack-demo-vanilla-bundle/src/examples/example09.scss
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,6 @@ | ||
.hidden { | ||
display: none; | ||
} | ||
.visible { | ||
display: inline-block; | ||
} |
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
2 changes: 1 addition & 1 deletion
2
examples/webpack-demo-vanilla-bundle/src/examples/example14.scss
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
9 changes: 8 additions & 1 deletion
9
examples/webpack-demo-vanilla-bundle/src/examples/example15.scss
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 |
---|---|---|
@@ -1 +1,8 @@ | ||
@import '@slickgrid-universal/common/dist/styles/sass/slickgrid-theme-salesforce.scss'; | ||
@import '@slickgrid-universal/common/dist/styles/sass/slickgrid-theme-salesforce.scss'; | ||
|
||
.hidden { | ||
display: none; | ||
} | ||
.visible { | ||
display: inline-block; | ||
} |
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.