afterValidate
fires after the control value is validated
afterValidate: (value: string | object, isValidate: boolean) => void;
Parameters:
value: string | object- the validated valueisValidate: boolean- the result of validation
Example
form.getItem("timepicker").events.on("afterValidate", function(value, isValidate) {
console.log("afterValidate", value, isValidate);
});
The type of the value parameter depends on the applied valueFormat and timeFormat:
- If
valueFormat: "string"andtimeFormat:24are specified, the string value will include just the hour and minutes: "00:39" - If
valueFormat: "string"andtimeFormat:12are specified, the string value will include hour, minutes, and am/pm identifiers: "06:00AM" - If
valueFormat: "timeObject"andtimeFormat:24are specified, the object value will containkey:valuepairs for hours, minutes and their values:{hour: 0, minute: 39} - If
valueFormat: "timeObject"andtimeFormat:12are specified, the object value will containkey:valuepairs for hours, minutes, am/pm identifiers and their values:{hour: 6, minute: 0, AM: true}
Change log:
added in v7.0