A cached reference to the global tooltip element
A reference to the HTML element which is currently tool-tipped, if any.
Is the tooltip currently active?
A reference to a window timeout function when an element is activated.
A reference to a window timeout function when an element is deactivated.
An element which is pending tooltip activation if hover is sustained
An amount of margin which is used to offset tooltips from their anchored element.
The number of milliseconds delay which activates a tooltip on a "long hover".
The directions in which a tooltip can extend, relative to its tool-tipped element.
Activate interactivity by listening for hover events on HTML elements which have a data-tooltip defined.
Activate the tooltip for a hovered HTML element which defines a tooltip localization key.
The HTML element being hovered.
Additional options which can override tooltip behavior.
Clear any pending activation workflow.
Handle hover events which activate a tooltipped element.
The initiating pointerenter event
Handle hover events which deactivate a tooltipped element.
The initiating pointerleave event
Start the deactivation process.
Clear any existing deactivation workflow.
Deactivate the tooltip from a previously hovered HTML element.
If an explicit tooltip expansion direction was not specified, figure out a valid direction based on the bounds of the target element and the screen.
Set tooltip position relative to an HTML element using an explicitly provided data-tooltip-direction.
The tooltip expansion direction specified by the element or a parent element.
Apply inline styling rules to the tooltip for positioning and text alignment.
A singleton Tooltip Manager class responsible for rendering and positioning a dynamic tooltip element which is accessible as
game.tooltip
.Game.tooltip
API Usage
HTML Usage