@angular/material
Version:
Angular Material
39 lines (38 loc) • 1.41 kB
TypeScript
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import { Optional } from '@angular/core';
/**
* The OverlayContainer is the container in which all overlays will load.
* It should be provided in the root component to ensure it is properly shared.
*/
export declare class OverlayContainer {
protected _containerElement: HTMLElement;
private _themeClass;
/**
* Base theme to be applied to all overlay-based components.
*/
themeClass: string;
/**
* This method returns the overlay container element. It will lazily
* create the element the first time it is called to facilitate using
* the container in non-browser environments.
* @returns the container element
*/
getContainerElement(): HTMLElement;
/**
* Create the overlay container element, which is simply a div
* with the 'cdk-overlay-container' class on the document body.
*/
protected _createContainer(): void;
}
export declare function OVERLAY_CONTAINER_PROVIDER_FACTORY(parentContainer: OverlayContainer): OverlayContainer;
export declare const OVERLAY_CONTAINER_PROVIDER: {
provide: typeof OverlayContainer;
deps: Optional[][];
useFactory: (parentContainer: OverlayContainer) => OverlayContainer;
};