blockly > Kurzinfo > CustomTooltip
Eine Funktion, die die Benutzeroberfläche für benutzerdefinierte Kurzinfos rendert. Erster Parameter: das div-Element, in das der Inhalt gerendert werden soll. 2.Parameter: Element, über das der Mauszeiger bewegt wird, d. h. das Element, für das die Kurzinfo angezeigt werden soll
Unterschrift:
export type CustomTooltip = (p1: Element, p2: Element) => any;
Sofern nicht anders angegeben, sind die Inhalte dieser Seite unter der Creative Commons Attribution 4.0 License und Codebeispiele unter der Apache 2.0 License lizenziert. Weitere Informationen finden Sie in den Websiterichtlinien von Google Developers. Java ist eine eingetragene Marke von Oracle und/oder seinen Partnern.
Zuletzt aktualisiert: 2024-09-11 (UTC).
[null,null,["Zuletzt aktualisiert: 2024-09-11 (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"]]