blockly > Field > doValueInvalid_

Field.doValueInvalid_() method

Used to notify the field an invalid value was input. Can be overridden by subclasses, see FieldTextInput. No-op by default.

Signature:

protected doValueInvalid_(_invalidValue: any, _fireChangeEvent?: boolean): void;

Parameters

Parameter Type Description
_invalidValue any The input value that was determined to be invalid.
_fireChangeEvent boolean (Optional) Whether to fire a change event if the value changes.

Returns:

void