@angular2-material/core
Version:
Angular 2 Material core
21 lines (20 loc) • 751 B
TypeScript
import { PortalHost, Portal } from '../portal/portal';
import { OverlayState } from './overlay-state';
/**
* Reference to an overlay that has been created with the Overlay service.
* Used to manipulate or dispose of said overlay.
*/
export declare class OverlayRef implements PortalHost {
private _portalHost;
private _pane;
private _state;
constructor(_portalHost: PortalHost, _pane: HTMLElement, _state: OverlayState);
attach(portal: Portal<any>): any;
detach(): Promise<any>;
dispose(): void;
hasAttached(): boolean;
/** Gets the current state config of the overlay. */
getState(): OverlayState;
/** Updates the position of the overlay based on the position strategy. */
updatePosition(): void;
}