displayTooltip() function
Manually trigger a tooltip that will appear over the provided element.
To display a tooltip on hover, use setTooltip() instead.
Signature:
export function displayTooltip(newTargetEl: HTMLElement, content: string | DocumentFragment, options?: TooltipOptions): void;
Parameters
Parameter | Type | Description |
---|---|---|
newTargetEl | HTMLElement | |
content | string | DocumentFragment | |
options | TooltipOptions | (Optional) |
Returns:
void