blockly > Tooltip > 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).
Signature:
export type CustomTooltip = (p1: Element, p2: Element) => any;
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."],[[["`CustomTooltip` is a type defining a function for rendering custom tooltips in Blockly."],["This function takes two arguments: the HTML element to render the tooltip content into and the element that triggered the tooltip display."],["Developers can use `CustomTooltip` to create and control the appearance and content of tooltips for specific Blockly elements."]]],["The `CustomTooltip` type is a function designed to create custom tooltip user interfaces. It takes two parameters: an HTML `Element` (div) where the tooltip's content will be rendered and another `Element` representing the target being hovered over. This function's purpose is to dynamically generate and display a tooltip based on these two input elements, and it can return any value.\n"]]