Skip to main content

Home > 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

ParameterTypeDescription
newValueany(Optional) The input value.

Returns:

number | null

A valid number, or null if invalid.