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

Method hide

src/material/tooltip/tooltip.ts:474–485  ·  view source on GitHub ↗

Hides the tooltip after the delay in ms, defaults to tooltip-delay-hide or 0ms if no input

(delay: number = this.hideDelay)

Source from the content-addressed store, hash-verified

472
473 /** Hides the tooltip after the delay in ms, defaults to tooltip-delay-hide or 0ms if no input */
474 hide(delay: number = this.hideDelay): void {
475 const instance = this._tooltipInstance;
476
477 if (instance) {
478 if (instance.isVisible()) {
479 instance.hide(delay);
480 } else {
481 instance._cancelPendingAnimations();
482 this._detach();
483 }
484 }
485 }
486
487 /** Shows/hides the tooltip */
488 toggle(origin?: {x: number; y: number}): void {

Callers 9

disabledMethod · 0.95
messageMethod · 0.95
ngAfterViewInitMethod · 0.95
toggleMethod · 0.95
_createOverlayMethod · 0.95
touchendListenerMethod · 0.95
tooltip.spec.tsFile · 0.45
setPositionAndShowFunction · 0.45

Calls 3

_detachMethod · 0.95
isVisibleMethod · 0.45

Tested by 1

setPositionAndShowFunction · 0.36