TooltipHandle
Defined in: ui/src/attachTooltip.ts:41
Controller returned by attachTooltip. The tooltip is inert until
you drive it: attachTooltip wires no input of its own, so it can’t
clobber the anchor’s handlers and you stay free to trigger on whatever you
like — hover, focus, long-press, or programmatically.
Methods
Section titled “Methods”dispose()
Section titled “dispose()”dispose():
void
Defined in: ui/src/attachTooltip.ts:49
Destroy the content node and release the overlay slot.
Returns
Section titled “Returns”void
setActive()
Section titled “setActive()”setActive(
active):void
Defined in: ui/src/attachTooltip.ts:47
Show (true) or hide (false) the bubble. The signature lines up 1:1
with an onHover(hovering) callback, so the common hover wiring is just
anchor.update({ onHover: tip.setActive }).
Parameters
Section titled “Parameters”active
Section titled “active”boolean
Returns
Section titled “Returns”void