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

Method toggle

src/material/tooltip/tooltip.ts:488–490  ·  view source on GitHub ↗

Shows/hides the tooltip

(origin?: {x: number; y: number})

Source from the content-addressed store, hash-verified

486
487 /** Shows/hides the tooltip */
488 toggle(origin?: {x: number; y: number}): void {
489 this._isTooltipVisible() ? this.hide() : this.show(undefined, origin);
490 }
491
492 /** Returns true if the tooltip is currently visible to the user */
493 _isTooltipVisible(): boolean {

Callers

nothing calls this directly

Calls 3

_isTooltipVisibleMethod · 0.95
hideMethod · 0.95
showMethod · 0.95

Tested by

no test coverage detected