Home > blockly > FieldCheckbox > doClassValidation_
FieldCheckbox.doClassValidation_() method
Ensure that the input value is valid ('TRUE' or 'FALSE').
Signature:
protected doClassValidation_(newValue?: any): BoolString | null;
Parameters
| Parameter | Type | Description |
|---|---|---|
| newValue | any | (Optional) The input value. |
Returns:
BoolString | null
A valid value ('TRUE' or 'FALSE), or null if invalid.