DataFieldValidator: ((value, options) => boolean | void)

A Custom DataField validator function.

A boolean return value indicates that the value is valid (true) or invalid (false) with certainty. With an explicit boolean return value no further validation functions will be evaluated.

An undefined return indicates that the value may be valid but further validation functions should be performed, if defined.

An Error may be thrown which provides a custom error message explaining the reason the value is invalid.

Type declaration

    • (value, options): boolean | void
    • Parameters

      Returns boolean | void