mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
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:
committed by
tinayuangao
parent
8997db0513
commit
959a8a100c
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user