angular-ui datepicker弹出窗口显示不止一次我一次需要一个

时间:2015-01-21 09:04:13

标签: angularjs twitter-bootstrap datepicker angular-ui

大家好我正在使用角度ui datepicker,我正在使用4个datepicker,我现在可以同时打开所有。但我可以一次打开一个multiple datepicker opening but i need one at a time

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>

2 个答案:

答案 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"/>