feat(overlay): expose reference to the backdrop element (#9702)

Exposes a reference to the backdrop element via the `OverlayRef` for convenience/customization.

Fixes #9689.
This commit is contained in:
Kristiyan Kostadinov
2018-02-01 20:26:02 +01:00
committed by tinayuangao
parent 8997db0513
commit 959a8a100c
+5
View File
@@ -52,6 +52,11 @@ export class OverlayRef implements PortalOutlet {
return this._pane;
}
/** The overlay's backdrop HTML element. */
get backdropElement(): HTMLElement | null {
return this._backdropElement;
}
attach<T>(portal: ComponentPortal<T>): ComponentRef<T>;
attach<T>(portal: TemplatePortal<T>): EmbeddedViewRef<T>;
attach(portal: any): any;