Stay organized with collections
Save and categorize content based on your preferences.
blockly > icons > WarningIcon > onClick
icons.WarningIcon.onClick() method
Toggles the visibility of the bubble.
Signature:
onClick(): void;
Returns:
void
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."],[[["\u003cp\u003eThe \u003ccode\u003eonClick\u003c/code\u003e method is associated with the \u003ccode\u003eWarningIcon\u003c/code\u003e class within the \u003ccode\u003eicons\u003c/code\u003e namespace of Blockly.\u003c/p\u003e\n"],["\u003cp\u003eThis method controls the visibility of the warning bubble, toggling it on or off when invoked.\u003c/p\u003e\n"],["\u003cp\u003eWhen called, it doesn't return any specific value (void).\u003c/p\u003e\n"],["\u003cp\u003eIts primary function is to handle click interactions with the warning icon, affecting the display of associated information or messages.\u003c/p\u003e\n"]]],[],null,["[blockly](./blockly.md) \\\u003e [icons](./blockly.icons_namespace.md) \\\u003e [WarningIcon](./blockly.icons_namespace.warningicon_class.md) \\\u003e [onClick](./blockly.icons_namespace.warningicon_class.onclick_1_method.md)\n\nicons.WarningIcon.onClick() method\n----------------------------------\n\nToggles the visibility of the bubble.\n\n**Signature:** \n\n onClick(): void;\n\n**Returns:**\n\nvoid"]]