Stay organized with collections
Save and categorize content based on your preferences.
blockly > icons > CommentIcon > onTextChange
Updates the text of this comment in response to changes in the text of the input bubble.
Signature:
onTextChange(): 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\u003eicons.CommentIcon.onTextChange()\u003c/code\u003e method updates the comment's text to reflect changes in the associated input bubble.\u003c/p\u003e\n"],["\u003cp\u003eThis method is triggered when the text within the input bubble is modified.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eonTextChange()\u003c/code\u003e does not return any value (void).\u003c/p\u003e\n"],["\u003cp\u003eIt specifically belongs to the \u003ccode\u003eCommentIcon\u003c/code\u003e class within the \u003ccode\u003eicons\u003c/code\u003e namespace of Blockly.\u003c/p\u003e\n"]]],["The `onTextChange()` method, part of the `CommentIcon` class within the `icons` namespace, is designed to update the text of a comment. This method is triggered when changes occur in the associated input bubble's text. Its core function is to synchronize the comment's text with the modified input. It takes no parameters and returns nothing (void).\n"],null,["[blockly](./blockly.md) \\\u003e [icons](./blockly.icons_namespace.md) \\\u003e [CommentIcon](./blockly.icons_namespace.commenticon_class.md) \\\u003e [onTextChange](./blockly.icons_namespace.commenticon_class.ontextchange_1_method.md)\n\nicons.CommentIcon.onTextChange() method\n---------------------------------------\n\nUpdates the text of this comment in response to changes in the text of the input bubble.\n\n**Signature:** \n\n onTextChange(): void;\n\n**Returns:**\n\nvoid"]]