简体   繁体   English

Angular-UI Bootstrap手风琴-无法禁用

[英]Angular-ui bootstrap accordion - cant disable

I have an accordion from angular-ui bootstrap. 我有一个来自angular-ui引导程序的手风琴。 In the header of each accordion i have a checkbox that should enable/disable the ability to open the accordion. 每个手风琴的标题中,我都有一个复选框,该复选框应启用/禁用打开手风琴的功能。 Heres the code 继承人代码

<div ng-repeat="b in board | filter:searchText track by b.Id">
<accordion-group class="animation-appear" ng-disabled="b.selected">
    <accordion-heading>
        <h4>
            {{b.Name}} <small>- set list aliases</small>
            <input type="checkbox" ng-checked="b.selected" ng-model="b.selected" ng-click="checkboxClick(b, $event)" style="float:right" />
        </h4>
    </accordion-heading>
        ....
        ....
        ....
</accordion-group>

Everything seems to work fine, except the ability to disable an accordion. 除了能够禁用手风琴的功能以外,其他一切似乎都可以正常工作。 The accordions work, the checkboxes in the accordions work, the model from $scope.board.selected is updated, but still the ng-disabled doesnt disable the accordion 手风琴工作,手风琴中的复选框工作,$ scope.board.selected中的模型已更新,但ng-disabled仍不禁用手风琴

Any help is greatly appreciated! 任何帮助是极大的赞赏!

This is not supported in the latest released version (0.10.0) but the new release (coming this weekend!) has a support for the is-disabled property. 最新发行版(0.10.0)不支持此功能,但是新发行版(本周末即将推出!)具有对is-disabled属性的支持。 See https://github.com/angular-ui/bootstrap/commit/9c43ae7c0a66ff454c97296122d8f82c89ac4d5e 参见https://github.com/angular-ui/bootstrap/commit/9c43ae7c0a66ff454c97296122d8f82c89ac4d5e

You can build content of the https://github.com/angular-ui/bootstrap repo if you need this support now. 如果您现在需要此支持,则可以构建https://github.com/angular-ui/bootstrap存储库的内容。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM