大家好我正在使用角度ui datepicker,我正在使用4个datepicker,我现在可以同时打开所有。但我可以一次打开一个
HTML
<div ng-controller="approvalDate" class="datePickerClass">
<p class="input-group">
<input type="text" class="form-control" placeholder="Select date" datepicker-popup="{{format}}" ng-model="dt" is-open="opened" min-date="minDate" max-date="'2015-06-22'" input-disabled="editableInput"/>
<span class="input-group-btn">
<button type="button" class="btn btn-default calandar-custom" ng-click="open($event)" input-disabled="editableInput"> <i class="glyphicon glyphicon-calendar"> </i> </button>
</span>
</span>
</p>
</div>
答案 0 :(得分:0)
每个日期选择器都有相同的ng型号名称,你必须更改!!
看看&#34; wayne&#34的回答(:
How to usemultiple Angular UI Bootstrap Datepicker in single form?
答案 1 :(得分:0)
<input type="text" datepicker-popup ng-model="atime" is-open="atime_opened" ng-click="atime_opened = !atime_opened"/>