setTooltip() function
Signature:
export function setTooltip(el: HTMLElement, tooltip: string, options?: TooltipOptions): void;Parameters
| Parameter | Type | Description |
|---|---|---|
el | HTMLElement | The element to show the tooltip on |
tooltip | string | The tooltip text to show |
options | TooltipOptions | (Optional) |
Returns:
void