blockly > Tooltip
Functions
Variables
Variable |
Description |
HOVER_MS |
Delay before tooltip appears. |
LIMIT |
Maximum width (in characters) of a tooltip. |
MARGINS |
Horizontal padding between tooltip and screen edge. |
OFFSET_X |
Horizontal offset between mouse cursor and tooltip. |
OFFSET_Y |
Vertical offset between mouse cursor and tooltip. |
RADIUS_OK |
Radius mouse can move before killing tooltip. |
Type Aliases
Type Alias |
Description |
CustomTooltip |
A function that renders custom tooltip UI. 1st parameter: the div element to render content into. 2nd parameter: the element being moused over (i.e., the element for which the tooltip should be shown). |
TipInfo |
A type which can define a tooltip. Either a string, an object containing a tooltip property, or a function which returns either a string, or another arbitrarily nested function which eventually unwinds to a string. |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-18 UTC.
[null,null,["Last updated 2024-09-18 UTC."],[[["The Tooltip namespace provides functions and variables for managing tooltips in Blockly, including showing, hiding, and customizing their appearance and behavior."],["It offers methods to bind and unbind mouse events, control tooltip visibility, and set custom tooltip content."],["Developers can define custom tooltips using a provided type alias and function, enabling flexible and tailored tooltip experiences."],["Several variables control tooltip behavior such as delay, maximum width, and offsets, allowing for customization of tooltip positioning and appearance."],["The namespace includes type aliases for defining custom tooltips and tooltip information, further enhancing the flexibility of the tooltip system."]]],[]]