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

Method hide

src/material/tooltip/tooltip.ts:1039–1049  ·  view source on GitHub ↗

* Begins the animation to hide the tooltip after the provided delay in ms. * @param delay Amount of milliseconds to delay showing the tooltip.

(delay: number)

Source from the content-addressed store, hash-verified

1037 * @param delay Amount of milliseconds to delay showing the tooltip.
1038 */
1039 hide(delay: number): void {
1040 // Cancel the delayed show if it is scheduled
1041 if (this._showTimeoutId != null) {
1042 clearTimeout(this._showTimeoutId);
1043 }
1044
1045 this._hideTimeoutId = setTimeout(() => {
1046 this._toggleVisibility(false);
1047 this._hideTimeoutId = undefined;
1048 }, delay);
1049 }
1050
1051 /** Returns an observable that notifies when the tooltip has been hidden from view. */
1052 afterHidden(): Observable<void> {

Callers 2

_handleMouseLeaveMethod · 0.95

Calls 1

_toggleVisibilityMethod · 0.95

Tested by

no test coverage detected