Summary Table
Categories |
Total Count |
PII |
0 |
URL |
0 |
DNS |
0 |
EKL |
0 |
IP |
0 |
PORT |
0 |
VsID |
0 |
CF |
0 |
AI |
0 |
VPD |
0 |
PL |
0 |
Other |
0 |
File Content
import { Injectable } from '@angular/core';
@Injectable()
export class TooltipService {
private tooltipList = [];
private id = 0;
registerTooltip(tooltip) {
this.tooltipList.push(tooltip);
this.tooltipList.forEach(
tooltip => {
tooltip.id = this.id;
this.id++;
}
)
}
showTooltip(id) {
this.tooltipList.forEach(tooltip => tooltip.id === id? tooltip.displayTooltip = true: tooltip.displayTooltip = false);
}
unRegisterTooltips() {
this.tooltipList = [];
this.id = 0;
}
}