-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ROU-4571: Set custom tooltip on ColumnGroup (#377)
* Fix tooltip issue when using column group - Fix bug when using a custom tooltip in a Grid with Column Group - Created a new file to place the constants used in the file - Added a method to set the Column Group header tooltip * Expose tooltip as a Data Grid feature - This is necessary so the developer can use the new setColumnGroupHeaderTooltip method * Fix eslint issues * Add comments * Changed names and constants based on comments
- Loading branch information
1 parent
8ca7efd
commit 73d4c24
Showing
7 changed files
with
132 additions
and
33 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// eslint-disable-next-line @typescript-eslint/no-unused-vars | ||
namespace OSFramework.DataGrid.Feature { | ||
export interface ITooltip { | ||
/** | ||
* Set the Column Group header tooltip content. | ||
* @param {HTMLElement} cell | ||
* @param {string} tooltipContent | ||
*/ | ||
setColumnGroupHeaderTooltip( | ||
cell: HTMLElement, | ||
tooltipContent: string | ||
): void; | ||
} | ||
} |
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,11 @@ | ||
// eslint-disable-next-line @typescript-eslint/no-unused-vars | ||
namespace OSFramework.DataGrid.Helper.GlobalEnum { | ||
export enum HTMLAttributes { | ||
Class = 'class' | ||
} | ||
|
||
export enum HTMLEvent { | ||
MouseOver = 'mouseover', | ||
MouseOut = 'mouseout' | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
// eslint-disable-next-line @typescript-eslint/no-unused-vars | ||
namespace Providers.DataGrid.Wijmo.Helper.Constants { | ||
export enum CssClasses { | ||
CellClass = 'div.dg-cell', | ||
ColumnGroup = 'wj-colgroup', | ||
Tooltip = 'wj-tooltip', | ||
TooltipErrorValidation = 'errorValidation' | ||
} | ||
} |