Hides the tooltip after the delay in ms, defaults to tooltip-delay-hide or 0ms if no input
(delay: number = this.hideDelay)
| 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 { |