datePicker日期控件是很常用的控件,可以使用 start , depth來控制取值的范圍。
start ,depth可以選擇的參數有month,year,decade ,century 。
如何要只選擇年:我們要用參數 decade ,以此類推。
$("#monthpicker").kendoDatePicker({
// defines the start view
start: "year",
// defines when the calendar should return date
depth: "year",
// display month and year in the input
format: "MMMM yyyy",
// specifies that DateInput is used for masking the input element
dateInput: true
});
