angular.js - How to restrict angular's datepicker to only select the date of the current month?
为情所困
为情所困 2017-05-15 17:01:03
0
1
662

1. Now there is a requirement. When startdate is selected, enddate can only select the date of the same month. For example, if startdate selects 2016-04-21, then enddate can only select the content of April. How to set it up

2. How to delete the selection button on the calendar

为情所困
为情所困

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