MCPcopy Index your code
hub / github.com/angular/components / show

Method show

src/material/tooltip/tooltip.ts:1023–1033  ·  view source on GitHub ↗

* Shows the tooltip with an animation originating from the provided origin * @param delay Amount of milliseconds to the delay showing the tooltip.

(delay: number)

Source from the content-addressed store, hash-verified

1021 * @param delay Amount of milliseconds to the delay showing the tooltip.
1022 */
1023 show(delay: number): void {
1024 // Cancel the delayed hide if it is scheduled
1025 if (this._hideTimeoutId != null) {
1026 clearTimeout(this._hideTimeoutId);
1027 }
1028
1029 this._showTimeoutId = setTimeout(() => {
1030 this._toggleVisibility(true);
1031 this._showTimeoutId = undefined;
1032 }, delay);
1033 }
1034
1035 /**
1036 * Begins the animation to hide the tooltip after the provided delay in ms.

Callers

nothing calls this directly

Calls 1

_toggleVisibilityMethod · 0.95

Tested by

no test coverage detected