afterClose
fires after closing the timepicker
afterClose: (value: string | object) => void;
Parameters:
value: string | object
- the current value of a timepicker
Example
timepicker.events.on("afterClose", function(value){
console.log(value);
});
Related sample: Timepicker. Events
The type of the value parameter depends on the applied valueFormat
and timeFormat
:
- If
valueFormat: "string"
andtimeFormat:24
are specified, the string value will include just the hour and minutes: "00:39" - If
valueFormat: "string"
andtimeFormat:12
are specified, the string value will include hour, minutes, and am/pm identifiers: "06:00AM" - If
valueFormat: "timeObject"
andtimeFormat:24
are specified, the object value will containkey:value
pairs for hours, minutes and their values:{hour: 0, minute: 39}
- If
valueFormat: "timeObject"
andtimeFormat:12
are specified, the object value will containkey:value
pairs for hours, minutes, am/pm identifiers and their values:{hour: 6, minute: 0, AM: true}
Change log:
- The value parameter was added in v7.0
- The event was added in v6.4