blockly > FieldLabel > doClassValidation_
FieldLabel.doClassValidation_() method
Ensure that the input value casts to a valid string.
Signature:
protected doClassValidation_(newValue?: any): string | null;
Parameters
Parameter | Type | Description |
---|---|---|
newValue | any | (Optional) The input value. |
Returns:
string | null
A valid string, or null if invalid.