blockly > Field > getValidator
Field.getValidator() method
Gets the validation function for editable fields, or null if not set.
Signature:
getValidator(): FieldValidator<T> | null;
Returns:
FieldValidator<T> | null
Validation function, or null.