import { ChangeDetectionStrategy, ChangeDetectorRef, Component, ElementRef, Inject, Input, ViewChild, } from '@angular/core'; import { fadeInOutAnimation, } from './../../animations/index'; @Component({ animations: [ fadeInOutAnimation(), ], changeDetection: ChangeDetectionStrategy.OnPush, selector: 'tooltip-component', styleUrls: [ './tooltip.component.scss', ], templateUrl: './tooltip.component.template.pug', }) export default class TooltipComponent { @Input() public text: string; @Input() public tooltipTitle: string; @Input() public visible = false; @Input() public width: number; @Input() public isToRight = true; @Input() public isBelow = true; constructor( public changeDetectorRef: ChangeDetectorRef, ) {} }