Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
blockly > Kurzinfo > setCustomTooltip
Legt eine benutzerdefinierte Funktion fest, die, falls vorhanden, anstelle der Standardbenutzeroberfläche für Kurzinfos aufgerufen wird.
Unterschrift:
export declare function setCustomTooltip(customFn: CustomTooltip): void;
Parameter
Parameter |
Typ |
Beschreibung |
customFn |
CustomTooltip |
Eine benutzerdefinierte Kurzinfo, die zum Rendern einer alternativen Benutzeroberfläche für Kurzinfos verwendet wird. |
Gibt zurück:
voidm
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-08-21 (UTC).
[[["Leicht verständlich","easyToUnderstand","thumb-up"],["Mein Problem wurde gelöst","solvedMyProblem","thumb-up"],["Sonstiges","otherUp","thumb-up"]],[["Benötigte Informationen nicht gefunden","missingTheInformationINeed","thumb-down"],["Zu umständlich/zu viele Schritte","tooComplicatedTooManySteps","thumb-down"],["Nicht mehr aktuell","outOfDate","thumb-down"],["Problem mit der Übersetzung","translationIssue","thumb-down"],["Problem mit Beispielen/Code","samplesCodeIssue","thumb-down"],["Sonstiges","otherDown","thumb-down"]],["Zuletzt aktualisiert: 2024-08-21 (UTC)."],[[["Enables the use of a custom function to display tooltips instead of the default Blockly tooltip UI."],["Accepts a single argument: a `CustomTooltip` function that defines the alternative tooltip rendering logic."],["Replaces the standard tooltip behavior with the provided custom implementation."],["Does not return any value, simply updates the tooltip handling mechanism."]]],["The `Tooltip.setCustomTooltip()` function allows users to replace the default tooltip UI with a custom one. It takes a single parameter, `customFn`, of the type `CustomTooltip`. This `customFn` is the custom function that will be called to render the alternate tooltip UI. The function doesn't return any value. The function is used to change the tooltip UI.\n"]]