* Function that determines if this overlay should receive a specific event.
()
| 120 | * Function that determines if this overlay should receive a specific event. |
| 121 | */ |
| 122 | get eventPredicate(): ((event: Event) => boolean) | null { |
| 123 | // Note: the safe read here is redundant, but some internal tests mock out the overlay ref. |
| 124 | return this._config?.eventPredicate || null; |
| 125 | } |
| 126 | |
| 127 | attach<T>(portal: ComponentPortal<T>): ComponentRef<T>; |
| 128 | attach<T>(portal: TemplatePortal<T>): EmbeddedViewRef<T>; |