对于kendo-date-picker,我具有以下angularjs html语法:
{
"events": [{
"id": 153502679,
"name": "Green Bay Packers @ Chicago Bears",
"homeTeamName": "CHI Bears",
"awayTeamName": "GB Packers",
"startDate": "2019-09-06T00:20:00.0000000Z",
"offers": [{
"id": "1-2160521227",
"label": "Point Spread",
"outcomes": [{
"id": "1-2568051855",
"label": "GB Packers",
"line": "+3.5000",
"oddsAmerican": "-110",
"oddsDecimal": 1.9100,
"oddsFractional": "10/11",
"participant": "GB Packers"
},
是否可以将日历视图限制为仅显示月份和年份视图?
答案 0 :(得分:2)
您可以将选项传递给Kendo日期选择器,以告知您要开始显示并选择年份级别的日期。添加具有以下内容的k-options
属性:
k-options="{ start: 'year', depth: 'year' }"