Constructs an event handler that displays tooltips.
Reference to the enclosing AbstractGraph.
Delay to show the tooltip in milliseconds.
true if this handler was destroyed using onDestroy.
OptionaldivSpecifies if events are handled.
Reference to the enclosing AbstractGraph.
Specifies if the tooltip should be hidden if the mouse is moved over the current cell.
Specifies if touch and pen events should be ignored.
Specifies the zIndex for the tooltip and its shadow.
StaticpluginReturns the string or DOM node that represents the tooltip for the given state, node and coordinate pair.
This implementation checks if the given node is a folding icon or overlay and returns the respective tooltip.
getTooltipForNode method is called.Returns the string or DOM node to be used as the tooltip for the given cell. This implementation uses the Cell.getTooltip function if it exists, or else it returns convertValueToString for the cell.
To replace all tooltips with the string "Hello, World!", use the following code:
const tooltipHandler = graph.getPlugin<TooltipHandler>('TooltipHandler')!;
tooltipHandler.getTooltipForCell = function(cell) {
return 'Hello, World!';
}
Hides the tooltip and resets the timer.
Hides the tooltip.
Creates the tooltip element and appends it to the document body.
Returns true if events are handled.
This implementation returns enabled.
Returns hideOnHover.
Handles the event by resetting the tooltip timer or hiding the existing tooltip.
Destroys the handler and all its resources and DOM nodes.
Resets and/or restarts the timer to trigger the display of the tooltip.
Resets the timer.
Enables or disables event handling.
This implementation updates enabled.
Shows the tooltip for the specified cell and optional index at the specified location (with a vertical offset of 10 pixels).
Plugin that displays tooltips. It is generally enabled using AbstractGraph.setTooltips.
getTooltip is used to get the tooltip for a cell or handle.
IMPORTANT: Provides additional tooltip information on edges when the SelectionCellsHandler (cell selection) plugin is available. See getTooltip for more details.