TK.Tooltip

new Tooltip()

TK.GlobalTooltip is a small text field following the mouse. Due to optimization it is implemented as a table with a single cell containing the content.

Source:

Members

_entry :HTMLDivElement

The element containing the tooltip text. Has class toolkit-entry.

Source:

_table :HTMLDivElement

The table containing the tooltips. Has class toolkit-table.

Source:

element :HTMLDivElement

The overlay containing the tooltip table. Has class toolkit-tooltip.

Source:

Methods

add(priority, onmove)

Add a new tooltip.

Parameters:
Name Type Description
priority int

The priority of the tooltip. States its position in the list.

onmove function

The function which sets the text of the tooltip while moving the mouse.

Source:

hide()

Hide the tooltips

Source:

remove(priority, onmove)

Remove a tooltip.

Parameters:
Name Type Description
priority int

The priority of the tooltip.

onmove function

The function which sets the text of the tooltip while moving the mouse.

Source:

show()

Show the tooltips

Source: