blockly > FieldNumber > doClassValidation_
FieldNumber.doClassValidation_() method
Ensure that the input value is a valid number (must fulfill the constraints placed on the field).
Signature:
protected doClassValidation_(newValue?: any): number | null;
Parameters
Parameter | Type | Description |
---|---|---|
newValue | any | (Optional) The input value. |
Returns:
number | null
A valid number, or null if invalid.