Stay organized with collections
Save and categorize content based on your preferences.
blockly > Block > getTooltip
Returns the tooltip text for this block.
Signature:
getTooltip(): string;
Returns:
string
The tooltip text for this block.
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-09-18 UTC."],[[["This method returns the text shown when hovering over a block, providing user guidance."],["It's called using `getTooltip()` with no arguments and returns the tooltip as a string."]]],["The `Block.getTooltip()` method retrieves the tooltip text associated with a block. It's a method that, when called, returns a string. This string represents the tooltip that should be displayed for the specific block. The method signature is `getTooltip(): string;`, and it solely returns the tooltip text as a string value.\n"]]