-
-
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(services): add 2x new methods hideColumnById or ..byIds (#160)
* feat(services): add 2x new methods hideColumnById or ..byIds - deprecate previous methods (hideColumn, hideColumnByIndex) since the new methods offer more values with extra options to resize and/or hide from pickers
- Loading branch information
1 parent
1012cfb
commit d396653
Showing
8 changed files
with
258 additions
and
18 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
13 changes: 13 additions & 0 deletions
13
packages/common/src/interfaces/hideColumnOption.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,13 @@ | ||
export interface HideColumnOption { | ||
/** Defaults to true, do we want to auto-reize the columns in the grid after hidding the column(s)? */ | ||
autoResizeColumns?: boolean; | ||
|
||
/** Defaults to false, do we want to hide the column name from the column picker after hidding the column from the grid? */ | ||
hideFromColumnPicker?: boolean; | ||
|
||
/** Defaults to false, do we want to hide the column name from the grid menu after hidding the column from the grid? */ | ||
hideFromGridMenu?: boolean; | ||
|
||
/** Defaults to true, do we want to trigger an even "onHeaderMenuColumnsChanged" after hidding the column(s)? */ | ||
triggerEvent?: boolean; | ||
} |
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.