mirror of
https://github.com/nasa/openmct.git
synced 2025-06-19 07:38:15 +00:00
[Tooltips] Fixes for dictionary objects and self-referential objects (#6916)
* Fix getTelemetryPath to handle cases where parent is the same as the child, handle yamcs aggregate telemetry, and fix how identifiers are passed in * Cleanup getTelemetryPath * Switch to filter instead of forEach * Get path item names * Remove tooltips on scroll of tree * Remove handing for scroll * Allow break-words * Cleanup
This commit is contained in:
@ -57,13 +57,22 @@ class TooltipAPI {
|
||||
* @private for platform-internal use
|
||||
*/
|
||||
showTooltip(tooltip) {
|
||||
this.removeAllTooltips();
|
||||
this.activeToolTips.push(tooltip);
|
||||
tooltip.show();
|
||||
}
|
||||
|
||||
/**
|
||||
* API method to allow for removing all tooltips
|
||||
*/
|
||||
removeAllTooltips() {
|
||||
if (!this.activeToolTips?.length) {
|
||||
return;
|
||||
}
|
||||
for (let i = this.activeToolTips.length - 1; i > -1; i--) {
|
||||
this.activeToolTips[i].destroy();
|
||||
this.activeToolTips.splice(i, 1);
|
||||
}
|
||||
this.activeToolTips.push(tooltip);
|
||||
|
||||
tooltip.show();
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user