首页 > angular的datepicker怎么限制只能选择当月日期?

angular的datepicker怎么限制只能选择当月日期?

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

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


  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"

【热门文章】
【热门文章】