【问题标题】:angular-ui datepicker popup showing morethan one time i need one at a timeangular-ui datepicker 弹出窗口显示不止一次我一次需要一个
【发布时间】:2015-01-21 09:04:12
【问题描述】:

大家好,我正在使用 angular 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>

【问题讨论】:

    标签: angularjs twitter-bootstrap datepicker angular-ui


    【解决方案1】:

    每个日期选择器都有相同的 ng_model 名称,你必须更改它!

    看看这里“韦恩”的回答(:

    How to usemultiple Angular UI Bootstrap Datepicker in single form?

    【讨论】:

      【解决方案2】:
      <input type="text" datepicker-popup ng-model="atime" is-open="atime_opened" ng-click="atime_opened = !atime_opened"/>
      

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2017-08-13
        • 1970-01-01
        • 1970-01-01
        • 2017-10-15
        • 1970-01-01
        相关资源
        最近更新 更多