Skip to main content

Home > blockly > FieldNumber > setMax

FieldNumber.setMax() method

Sets the maximum value this field can contain. Updates the value to reflect.

Signature:

setMax(max: number | string | undefined | null): void;

Parameters

ParameterTypeDescription
maxnumber | string | undefined | nullMaximum value.

Returns:

void