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
Parameter | Type | Description |
---|---|---|
newValue | any | (Optional) The ID of the new variable to set. |
Returns:
string | null
The validated ID, or null if invalid.