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

Method hide

src/material/tooltip/testing/tooltip-harness.ts:53–62  ·  view source on GitHub ↗

Hides the tooltip.

()

Source from the content-addressed store, hash-verified

51
52 /** Hides the tooltip. */
53 async hide(): Promise<void> {
54 const host = await this.host();
55
56 // We need to dispatch both `touchstart` and a hover event, because
57 // the tooltip binds different events depending on the device.
58 await host.dispatchEvent('touchend');
59 await host.mouseAway();
60 const panel = await this._optionalPanel();
61 await panel?.dispatchEvent('animationend', {animationName: this._hideAnimationName});
62 }
63
64 /** Gets whether the tooltip is open. */
65 async isOpen(): Promise<boolean> {

Callers 1

Calls 2

dispatchEventMethod · 0.65
mouseAwayMethod · 0.65

Tested by

no test coverage detected