This repository was archived by the owner on May 29, 2019. It is now read-only.
File tree 2 files changed +3
-2
lines changed
2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ <h4>Popup</h4>
22
22
< div class ="row ">
23
23
< div class ="col-md-6 ">
24
24
< p class ="input-group ">
25
- < input type ="text " class ="form-control " datepicker-popup ="{{format}} " ng-model ="dt " is-open ="status.opened " min-date ="minDate " max-date ="'2020-06-22' " datepicker-options ="dateOptions " date-disabled ="disabled(date, mode) " ng-required ="true " close-text ="Close " />
25
+ < input type ="text " class ="form-control " datepicker-popup ="{{format}} " ng-model ="dt " is-open ="status.opened " min-date ="minDate " max-date ="maxDate " datepicker-options ="dateOptions " date-disabled ="disabled(date, mode) " ng-required ="true " close-text ="Close " />
26
26
< span class ="input-group-btn ">
27
27
< button type ="button " class ="btn btn-default " ng-click ="open($event) "> < i class ="glyphicon glyphicon-calendar "> </ i > </ button >
28
28
</ span >
@@ -31,7 +31,7 @@ <h4>Popup</h4>
31
31
32
32
< div class ="col-md-6 ">
33
33
< p class ="input-group ">
34
- < input type ="date " class ="form-control " datepicker-popup ng-model ="dt " is-open ="status.opened " min-date ="minDate " max-date ="'2020-06-22' " datepicker-options ="dateOptions " date-disabled ="disabled(date, mode) " ng-required ="true " close-text ="Close " />
34
+ < input type ="date " class ="form-control " datepicker-popup ng-model ="dt " is-open ="status.opened " min-date ="minDate " max-date ="maxDate " datepicker-options ="dateOptions " date-disabled ="disabled(date, mode) " ng-required ="true " close-text ="Close " />
35
35
< span class ="input-group-btn ">
36
36
< button type ="button " class ="btn btn-default " ng-click ="open($event) "> < i class ="glyphicon glyphicon-calendar "> </ i > </ button >
37
37
</ span >
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ angular.module('ui.bootstrap.demo').controller('DatepickerDemoCtrl', function ($
17
17
$scope . minDate = $scope . minDate ? null : new Date ( ) ;
18
18
} ;
19
19
$scope . toggleMin ( ) ;
20
+ $scope . maxDate = new Date ( 2020 , 5 , 22 ) ;
20
21
21
22
$scope . open = function ( $event ) {
22
23
$scope . status . opened = true ;
You can’t perform that action at this time.
0 commit comments