Skip to main content

valueFormat

Optional. Defines the format of the value to be applied when working with TimePicker events

valueFormat?: "string" | "timeObject";

Example

const timepicker = new dhx.Timepicker("timepicker_container", {
value: "06:00",
timeFormat: 24,
valueFormat: "string"
});

// or
const timepicker = new dhx.Timepicker("timepicker_container", {
value: {hour: 6, minute: 0, AM: true},
timeFormat: 12,
valueFormat: "timeObject"
});

Change log:

added in v7.0