UNPKG

982 BTypeScriptView Raw
1import { OnDestroy } from '@angular/core';
2import * as i0 from "@angular/core";
3/** Container inside which all toasts will render. */
4export declare class OverlayContainer implements OnDestroy {
5 protected _document: any;
6 protected _containerElement: HTMLElement;
7 constructor(_document: any);
8 ngOnDestroy(): void;
9 /**
10 * This method returns the overlay container element. It will lazily
11 * create the element the first time it is called to facilitate using
12 * the container in non-browser environments.
13 * @returns the container element
14 */
15 getContainerElement(): HTMLElement;
16 /**
17 * Create the overlay container element, which is simply a div
18 * with the 'cdk-overlay-container' class on the document body
19 * and 'aria-live="polite"'
20 */
21 protected _createContainer(): void;
22 static ɵfac: i0.ɵɵFactoryDeclaration<OverlayContainer, never>;
23 static ɵprov: i0.ɵɵInjectableDeclaration<OverlayContainer>;
24}