Skip to content

Profectus / wrappers/tooltips/tooltip / addTooltip

Function: addTooltip() ​

addTooltip(element, optionsFunc): asserts element is VueFeature & { tooltip: Tooltip }

Creates a tooltip on the given element with the given options.

Parameters ​

element ​

VueFeature

The renderable feature to display the tooltip on.

optionsFunc ​

() => TooltipOptions

Tooltip options.

Returns ​

asserts element is VueFeature & { tooltip: Tooltip }

Defined in ​

profectus/src/wrappers/tooltips/tooltip.tsx:54