Stay organized with collections
Save and categorize content based on your preferences.
blockly > FieldCheckbox > doValueUpdate_
FieldCheckbox.doValueUpdate_() method
Update the value of the field, and update the checkElement.
Signature:
protected doValueUpdate_(newValue: BoolString): void;
Parameters
Parameter |
Type |
Description |
newValue |
BoolString |
The value to be saved. The default validator guarantees that this is a either 'TRUE' or 'FALSE'. |
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\u003edoValueUpdate_\u003c/code\u003e method in \u003ccode\u003eFieldCheckbox\u003c/code\u003e updates the field's value and its visual check element.\u003c/p\u003e\n"],["\u003cp\u003eIt accepts a \u003ccode\u003eBoolString\u003c/code\u003e parameter representing the new value, which is validated to be either 'TRUE' or 'FALSE'.\u003c/p\u003e\n"],["\u003cp\u003eThis method is used internally by FieldCheckbox and does not return a value.\u003c/p\u003e\n"]]],[],null,["[blockly](./blockly.md) \\\u003e [FieldCheckbox](./blockly.fieldcheckbox_class.md) \\\u003e [doValueUpdate_](./blockly.fieldcheckbox_class.dovalueupdate__1_method.md)\n\nFieldCheckbox.doValueUpdate_() method\n-------------------------------------\n\nUpdate the value of the field, and update the checkElement.\n\n**Signature:** \n\n protected doValueUpdate_(newValue: BoolString): void;\n\nParameters\n----------\n\n| Parameter | Type | Description |\n|-----------|------------|--------------------------------------------------------------------------------------------------|\n| newValue | BoolString | The value to be saved. The default validator guarantees that this is a either 'TRUE' or 'FALSE'. |\n\n**Returns:**\n\nvoid"]]