blockly > icons > Icon > updateCollapsed
icons.Icon.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.
[null,null,["Last updated 2024-09-18 UTC."],[[["The `updateCollapsed()` method is used to update the visual state of an icon to reflect whether its associated block is collapsed or expanded."],["It belongs to the `Icon` class within the `icons` namespace of Blockly, used for managing block icons."],["This method has no input parameters and does not return any value, solely performing a visual update on the icon."]]],["The `updateCollapsed()` method, part of the `Icon` class within the `icons` namespace, is detailed. This method, with a void return type, has the signature `updateCollapsed(): void;`. Its core function is to update the collapsed state of an icon. It does not return any value.\n"]]