【发布时间】:2016-02-18 07:42:22
【问题描述】:
根据弹出样式的日期选择器用户的官方 Angular UI 文档,我需要创建带有 ng-click 事件的附加按钮,以更改绑定到 is-open 属性的 $scope 属性,如下所示:
<p class="input-group">
<input type="text" class="form-control" uib-datepicker-popup="{{format}}" ng-model="dt" is-open="popup1.opened" min-date="minDate" max-date="maxDate" datepicker-options="dateOptions" date-disabled="disabled(date, mode)" ng-required="true" close-text="Close" alt-input-formats="altInputFormats" />
<span class="input-group-btn">
<button type="button" class="btn btn-default" ng-click="open1()"><i class="glyphicon glyphicon-calendar"></i></button>
</span>
</p>
在我的应用程序中,每个视图可能有超过 10 个这样的日期选择器,因此我需要为每个视图实现 is-open 属性的属性。
有没有办法打开没有is-open 属性的日期选择器弹出窗口?
【问题讨论】:
标签: angularjs angular-ui-bootstrap angular-ui