JS$(document).ready(function() { // create TimePicker fro">
我刚开始使用Kendo UI时间选择器。如何禁用时间选择器中的特定值?
PHP (用于时隙的获取数组)
$time = $row['Time'];
HTML
<input id="timepicker" value="10:00 AM" style="width: 100%;" />
JS
$(document).ready(function() {
// create TimePicker from input HTML element
$("#timepicker").kendoTimePicker();
});
发布于 2015-10-16 11:59:11
可以显式设置以下值:
$("#timepicker").kendoTimePicker({
dates: [
new Date(2000, 10, 10, 10, 0, 0),
new Date(2000, 10, 10, 10, 30, 0)
] //the drop-down list will consist only two entries - "10:00 AM" and "10:30 AM"
});
或者你可以设定最小,最大和间隔。取决于你需要什么。http://docs.telerik.com/kendo-ui/api/javascript/ui/timepicker#configuration-dates
https://stackoverflow.com/questions/33175644
复制