Stay organized with collections Save and categorize content based on your preferences.

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_(opt_newValue?: any): number | null;

Parameters

Parameter Type Description
opt_newValue any (Optional) The input value.

Returns:

number | null

A valid number, or null if invalid.