beforeValidate
fires before the control value is validated
beforeValidate: (value: string | Date) => boolean | void;
Parameters:
value: string | Date
- the value to be validated
Returns:
Return false
to cancel the default action of the event; otherwise - true
.
Example
form.getItem("datepicker").events.on("beforeValidate", function(value) {
console.log("beforeValidate", value);
return true;
});
Change log:
added in v7.0