Skip to main content

Home > blockly > FieldTextInput > doClassValidation_

FieldTextInput.doClassValidation_() method

Ensure that the input value casts to a valid string.

Signature:

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

Parameters

ParameterTypeDescription
newValueany(Optional) The input value.

Returns:

string | null

A valid string, or null if invalid.