Stay organized with collections
Save and categorize content based on your preferences.
blockly > icons > WarningIcon > updateCollapsed
icons.WarningIcon.updateCollapsed() method
Signature:
updateCollapsed(): 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\u003eThis method updates the visual state of the warning icon to reflect whether the associated block is collapsed or expanded.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eupdateCollapsed()\u003c/code\u003e is part of the \u003ccode\u003eWarningIcon\u003c/code\u003e class within Blockly's \u003ccode\u003eicons\u003c/code\u003e namespace, responsible for managing the warning icon's appearance.\u003c/p\u003e\n"],["\u003cp\u003eIt is a method that takes no arguments and returns void.\u003c/p\u003e\n"],["\u003cp\u003eThe primary function of this method is to ensure the icon visually represents the state of the block it's attached to, aiding user comprehension.\u003c/p\u003e\n"]]],[],null,["[blockly](./blockly.md) \\\u003e [icons](./blockly.icons_namespace.md) \\\u003e [WarningIcon](./blockly.icons_namespace.warningicon_class.md) \\\u003e [updateCollapsed](./blockly.icons_namespace.warningicon_class.updatecollapsed_1_method.md)\n\nicons.WarningIcon.updateCollapsed() method\n------------------------------------------\n\n**Signature:** \n\n updateCollapsed(): void;\n\n**Returns:**\n\nvoid"]]