ui.bootstrap.datepicker是开放的模式行不通 [英] ui.bootstrap.datepicker is-open not working in modal
本文介绍了ui.bootstrap.datepicker是开放的模式行不通的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我可是引导UI日期选择器的指令和我正尝试有打开的日期选择器弹出像原来的例子的日期选择器按钮,但它不能在一个模式窗口中工作。
I´m using the Bootstrap UI datepicker directive and I´m trying to have an datepicker button that opens the datepicker popup like in the original example but it does not work in a modal window.
请参阅 PLUNKER
我在做什么错了?
推荐答案
只需更改为:是开=打开
来:
is-open="$parent.opened"
固定演示<大骨节病> Plunker 骨节病>
HTML,所以相关的片段看起来像:
So relevant snippets of HTML will look like:
<div class="input-group">
<input type="text" class="form-control"
datepicker-popup="dd.mm.yyyy"
ng-model="dt"
is-open="$parent.opened"
ng-required="true"
close-text="Close" />
<span class="input-group-btn">
<button style="height:34px;" class="btn btn-default" ng-click="open()">
<i class="icon-calendar"></i></button> <b><- button not working</b>
</span>
</div>
这篇关于ui.bootstrap.datepicker是开放的模式行不通的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文