@hxui/angular
Version:
This README includes the steps that are necessary to import the HxUi-angular into a project or to contribute with development.
26 lines (25 loc) • 875 B
TypeScript
import { AfterViewInit, ElementRef, ChangeDetectorRef } from '@angular/core';
import { Context } from '../enums';
export declare class TooltipContentComponent implements AfterViewInit {
private element;
private cdr;
hostElement: HTMLElement;
content: string;
placement: 'top' | 'bottom' | 'left' | 'right';
context: Context;
animation: boolean;
top: number;
left: number;
active: boolean;
contextEnum: typeof Context;
constructor(element: ElementRef, cdr: ChangeDetectorRef);
ngAfterViewInit(): void;
show(): void;
hide(): void;
private positionElements(hostEl, targetEl, positionStr, appendToBody?);
private position(nativeEl);
private offset(nativeEl);
private getStyle(nativeEl, cssProp);
private isStaticPositioned(nativeEl);
private parentOffsetEl(nativeEl);
}