* Available methods
()
| 25 | * Available methods |
| 26 | */ |
| 27 | public get methods(): ITooltip { |
| 28 | return { |
| 29 | show: (element: HTMLElement, |
| 30 | content: TooltipContent, |
| 31 | options?: TooltipOptions |
| 32 | ): void => this.show(element, content, options), |
| 33 | hide: (): void => this.hide(), |
| 34 | onHover: (element: HTMLElement, |
| 35 | content: TooltipContent, |
| 36 | options?: TooltipOptions |
| 37 | ): void => this.onHover(element, content, options), |
| 38 | }; |
| 39 | } |
| 40 | |
| 41 | /** |
| 42 | * Method show tooltip on element with passed HTML content |