You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

28 lines
1021 B

import { BreakpointObserver } from '@angular/cdk/layout';
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, TemplateRef, ViewEncapsulation } from '@angular/core';
import { matTooltipAnimations, TooltipComponent as MatTooltipComponent } from '@angular/material/tooltip';
@Component({
selector: 'tooltip',
templateUrl: './tooltip.component.html',
styleUrls: ['./tooltip.component.scss'],
encapsulation: ViewEncapsulation.None,
changeDetection: ChangeDetectionStrategy.OnPush,
animations: [matTooltipAnimations.tooltipState],
host: {
'[style.zoom]': '_visibility === "visible" ? 1 : null',
'(body:click)': 'this._handleBodyInteraction()',
'(body:auxclick)': 'this._handleBodyInteraction()',
'aria-hidden': 'true',
}
})
export class TooltipComponent extends MatTooltipComponent {
constructor(
changeDetectorRef: ChangeDetectorRef,
breakpointObserver: BreakpointObserver) {
super(changeDetectorRef, breakpointObserver);
}
public template: TemplateRef<any>;
}