Skip to content

pantoken-root / formats/interactions/src / initTooltip

Função: initTooltip() ​

initTooltip(wrapper, tip, options?): TooltipHandle

Vincula mostrar/ocultar por passar o mouse/foco com atraso a um wrapper de tooltip e ao seu balão de dica. Retorna uma função de limpeza para uso em disconnectedCallback do componente web.

CSS: wrapper = elemento .instui-tooltip, tip = seu filho .tip WC: wrapper = shadow .instui-tooltip, tip = shadow .tip

Parâmetros ​

wrapper ​

HTMLElement

tip ​

HTMLElement

options? ​

TooltipOptions

Retorna ​

TooltipHandle