1 | import { ElementRef } from '@angular/core';
|
2 | export interface PositioningOptions {
|
3 | /** The DOM element, ElementRef, or a selector string of an element which will be moved */
|
4 | element?: HTMLElement | ElementRef | string;
|
5 | /** The DOM element, ElementRef, or a selector string of an element which the element will be attached to */
|
6 | target?: HTMLElement | ElementRef | string;
|
7 | /**
|
8 | * A string of the form 'vert-attachment horiz-attachment' or 'placement'
|
9 | * - placement can be "top", "bottom", "left", "right"
|
10 | * not yet supported:
|
11 | * - vert-attachment can be any of 'top', 'middle', 'bottom'
|
12 | * - horiz-attachment can be any of 'left', 'center', 'right'
|
13 | */
|
14 | attachment?: string;
|
15 | /** A string similar to `attachment`. The one difference is that, if it's not provided, `targetAttachment` will assume the mirror image of `attachment`. */
|
16 | targetAttachment?: string;
|
17 | /** A string of the form 'vert-offset horiz-offset'
|
18 | * - vert-offset and horiz-offset can be of the form "20px" or "55%"
|
19 | */
|
20 | offset?: string;
|
21 | /** A string similar to `offset`, but referring to the offset of the target */
|
22 | targetOffset?: string;
|
23 | /** If true component will be attached to body */
|
24 | appendToBody?: boolean;
|
25 | }
|
26 | export declare class PositioningService {
|
27 | position(options: PositioningOptions): void;
|
28 | private _getHtmlElement(element);
|
29 | }
|