Skip to main content

Home > blockly > FieldLabel > doClassValidation_

FieldLabel.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.