angular.js - angular的datepicker怎么限制只能选择当月日期?
为情所困
为情所困 2017-05-15 17:01:03
0
1
651

1、现在有一个需求,当startdate被选后,enddate只能选择同一个月的日期,比如 startdate选择了 2016-04-21 那么enddate只能选择4月份的内容,请问怎么设置

2、怎么删掉日历上的选择按钮

为情所困
为情所困

reply all(1)
洪涛
  1. 设置minDate/maxDate

max-date="endDate" on the startDate input
min-date="startDate" on the endDate input


  1. 修改对应的template

https://github.com/angular-ui/bootstrap/blob/master/template/datepicker/day.html

templateCache key => "uib/template/datepicker/day.html"

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!