Optional. The time value to be set on initialization of the timepicker
const timepicker = new dhx.Timepicker("timepicker_container", {
value: new Date()
});
const timepicker = new dhx.Timepicker("timepicker_container", {
value: 1232151545
});
const timepicker = new dhx.Timepicker("timepicker_container", {
value: "22:30"
});
const timepicker = new dhx.Timepicker("timepicker_container", {
value: [6,20,"AM"]
});
const timepicker = new dhx.Timepicker("timepicker_container", {
value: {hour: 10, minute: 50, AM: true}
});
Related sample: Timepicker. Initialization with button
1. The value of timepicker set as an array should have the following elements:
2. The value set as an object:
key: value
pairs for hours, minutes and their values: {hour: 0, minute: 39}
key: value
pairs for hours, minutes, am/pm identifiers and their values: {hour: 6, minute: 0, AM: true}
3. The date set as a number is the number of milliseconds since January 1, 1970, 00:00:00 UTC returned by the getTime()
method of the Date object.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4