blockly > icons > CommentIcon > updateEditable
Updates the state of the bubble (editable / noneditable) to reflect the state of the bubble if the bubble is currently shown.
Signature:
updateEditable(): Promise<void>;
Returns:
Promise<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 `updateEditable()` method refreshes the visual state of a comment bubble to accurately reflect whether it's editable or not, but only if the bubble is currently visible."],["This method is part of the `CommentIcon` class within Blockly's icons namespace and returns a Promise that resolves when the update is complete."]]],["The `updateEditable()` method, part of the `CommentIcon` class within the `icons` namespace, is designed to modify the editability state of a comment bubble. This method ensures the bubble's display (editable or non-editable) matches its current state. It returns a Promise that resolves with no value (`void`) once the update is complete. It is triggered only if the comment bubble is visible.\n"]]