The TimePicker allows the end user to select a time value from a list of predefined values or to type a new value. It supports configurable options for the format, minimum and maximum time, and the interval between predefined values in the list.
<input id="timePicker" />$(document).ready(function(){
$("#timePicker").kendoTimePicker();
});When a TimePicker is initialized, it will automatically be displayed near the location of the used HTML element.
A TimePicker provides configuration options that can be easily set during initialization. Among the properties that can be controlled:
$("#timePicker").kendoTimePicker({
value: new Date(2000, 10, 10, 10, 0, 0),
min: new Date(1950, 0, 1, 8, 0, 0),
max: new Date(2049, 11, 31, 18, 0, 0)
});A TimePicker will set the value only if the entered time is valid and if it is in the defined range.
$("#timePicker").kendoTimePicker({
format: "hh:mm:ss tt"
});$("#timePicker").kendoTimePicker({
interval: 15
});You can reference an existing TimePicker instance via jQuery.data(). Once a reference has been established, you can use the API to control its behavior.
var timePicker = $("#timePicker").data("kendoTimePicker");