UNPKG

760 BTypeScriptView Raw
1/**
2 * @copyright Valor Software
3 * @copyright Federico Zivolo and contributors
4 */
5import { Renderer2 } from '@angular/core';
6import { Data, Offsets, Options } from './models';
7export declare class Positioning {
8 position(hostElement: HTMLElement, targetElement: HTMLElement): Offsets | undefined;
9 offset(hostElement: HTMLElement, targetElement: HTMLElement): Offsets | undefined;
10 positionElements(hostElement: HTMLElement | null, targetElement: HTMLElement | null, position: string, appendToBody?: boolean, options?: Options): Data | undefined;
11}
12export declare function positionElements(hostElement: HTMLElement | null, targetElement: HTMLElement | null, placement: string, appendToBody?: boolean, options?: Options, renderer?: Renderer2): void;