MCPcopy Create free account
hub / github.com/angular/components / eventPredicate

Method eventPredicate

src/cdk/overlay/overlay-ref.ts:122–125  ·  view source on GitHub ↗

* Function that determines if this overlay should receive a specific event.

()

Source from the content-addressed store, hash-verified

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>;

Callers 1

canReceiveEventFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected