Stay organized with collections Save and categorize content based on your preferences.

blockly > FieldCheckbox > doClassValidation_

FieldCheckbox.doClassValidation_() method

Ensure that the input value is valid ('TRUE' or 'FALSE').

Signature:

protected doClassValidation_(opt_newValue?: any): string | null;

Parameters

Parameter Type Description
opt_newValue any (Optional) The input value.

Returns:

string | null

A valid value ('TRUE' or 'FALSE), or null if invalid.