Skip to main content

Home > blockly > FieldVariable > doClassValidation_

FieldVariable.doClassValidation_() method

Ensure that the ID belongs to a valid variable of an allowed type.

Signature:

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

Parameters

ParameterTypeDescription
newValueany(Optional) The ID of the new variable to set.

Returns:

string | null

The validated ID, or null if invalid.