UNPKG

smart-tooltip-angular

Version:

A package that allows you tooltip to show intelligently base on where it is

40 lines (39 loc) 1.6 kB
import { OnInit, ElementRef } from '@angular/core'; export declare class SmartTooltipAngularDirective implements OnInit { private elementRef; classes: string[]; offSetValue: number; mouseLeftTimeOut: any; position: any; mouseEnter(): void; click(): void; mouseLeave(): void; constructor(elementRef: ElementRef); ngOnInit(): void; toolTipBlured(tooltip: any): void; myfunc(elementRef: ElementRef): void; removeTooltipClass(tooltip: any): void; getStayClass(tooltip: any): any; mouseLeft(elementRef: ElementRef): void; removeOverlayClass(tooltip: any): boolean; removeOverlayMarkClass(tooltip: any): boolean; /** * Calculate the position of the tooltip based on the fixed position of the container * @param {DOMClientRect} btnclient The Rectangle that defines the button element * @param {string} tooltipPostion The position the tooltip should be displayed */ getOverlayCoordinates(btnclient: any, tooltipclient: any, tooltipPostion: any): any; /** * Checks for overlay class and manipulate it * @param {any} tooltip the tooltip element * @param {string} position the string that show which side the tooltip is */ manipulateOverlayIfPresent(btnBClientRect: any, tooltip: any, tooltipPosition: any): boolean; /** * Get the sticky time on the tooltip or returns zero if none is found * @param {HtmlElement} tooltip The tooltip element */ getStickyTime(tooltip: any): number; tooltipMouseLeft(tooltip: any): void; tooltipMouseEnter(tooltip: any): void; }