* 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)
| 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> { |
no test coverage detected