为什么不在材料日期选择器上更改年份

时间:2017-03-05 23:50:43

标签: javascript jquery datepicker material-design

为什么不在物料日期选择器上更改年份和月份 enter image description here 在这里我添加了css和js:

 <link rel="stylesheet" type="text/css" href="{{asset('assets/datepicker/bootstrap-material-datepicker/css/bootstrap-material-datepicker.css')}}">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<script type="text/javascript" src="http://momentjs.com/downloads/moment.js"></script>
<script type="text/javascript" src="http://momentjs.com/downloads/moment-with-locales.js"></script>


<script type="text/javascript" src="{{asset('assets/datepicker/bootstrap-material-design/dist/js/material.min.js')}}"></script>
<script type="text/javascript" src="{{asset('assets/datepicker/bootstrap-material-datepicker/js/bootstrap-material-datepicker.js')}}"></script>

       $('#datepicker_finish').bootstrapMaterialDatePicker({ weekStart : 0 });
$('#datepicker_start').bootstrapMaterialDatePicker({ weekStart : 0 }).on('change', function(e, date)
{
$('#datepicker_finish').bootstrapMaterialDatePicker('setMinDate', date);
});

1 个答案:

答案 0 :(得分:0)

问题不明确 我的理解是你想知道为什么年份选择器不适用于材料dataPicker

这是角度材料的问题,但已经修复。 检查此链接 Make year selectable in angular material