-
-
Notifications
You must be signed in to change notification settings - Fork 116
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(services): add Toggle Filtering/Sorting & Hide Column methods (#587
) - The new methods are: - `filterService.toggleFilterFunctionality()` - `sortService.toggleSortFunctionality()` - `gridService.hideColumnByIndex(columnIndex)` - `gridService.hideColumn(column)`
- Loading branch information
1 parent
62c34f6
commit b9cf7f9
Showing
23 changed files
with
909 additions
and
94 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
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
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
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
56 changes: 56 additions & 0 deletions
56
src/app/modules/angular-slickgrid/models/slickEditorLock.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,56 @@ | ||
import { Editor } from './editor.interface'; | ||
|
||
/** | ||
* A locking helper to track the active edit controller and ensure that only a single controller | ||
* can be active at a time. This prevents a whole class of state and validation synchronization | ||
* issues. An edit controller (such as SlickGrid) can query if an active edit is in progress | ||
* and attempt a commit or cancel before proceeding. | ||
* @class EditorLock | ||
* @constructor | ||
*/ | ||
export interface SlickEditorLock { | ||
|
||
/** | ||
* Returns true if a specified edit controller is active (has the edit lock). | ||
* If the parameter is not specified, returns true if any edit controller is active. | ||
* @method isActive | ||
* @param editController {EditController} | ||
* @return {Boolean} | ||
*/ | ||
isActive(editController?: Editor): boolean; | ||
|
||
/** | ||
* Sets the specified edit controller as the active edit controller (acquire edit lock). | ||
* If another edit controller is already active, and exception will be thrown. | ||
* @method activate | ||
* @param editController {EditController} edit controller acquiring the lock | ||
*/ | ||
activate(editController: Editor): void; | ||
|
||
/** | ||
* Unsets the specified edit controller as the active edit controller (release edit lock). | ||
* If the specified edit controller is not the active one, an exception will be thrown. | ||
* @method deactivate | ||
* @param editController {EditController} edit controller releasing the lock | ||
*/ | ||
deactivate(editController: Editor): void; | ||
|
||
/** | ||
* Attempts to commit the current edit by calling "commitCurrentEdit" method on the active edit | ||
* controller and returns whether the commit attempt was successful (commit may fail due to validation | ||
* errors, etc.). Edit controller's "commitCurrentEdit" must return true if the commit has succeeded | ||
* and false otherwise. If no edit controller is active, returns true. | ||
* @method commitCurrentEdit | ||
* @return {Boolean} | ||
*/ | ||
commitCurrentEdit(): boolean; | ||
|
||
/** | ||
* Attempts to cancel the current edit by calling "cancelCurrentEdit" method on the active edit | ||
* controller and returns whether the edit was successfully cancelled. If no edit controller is | ||
* active, returns true. | ||
* @method cancelCurrentEdit | ||
* @return {Boolean} | ||
*/ | ||
cancelCurrentEdit(): boolean; | ||
} |
Oops, something went wrong.