What's a good way to control an angular-ui accordion programmatically?

后端 未结 2 1006
说谎
说谎 2021-02-04 05:46

I am using the accordion directive from http://angular-ui.github.com/bootstrap/ and I need to have more control over when the accordions open and close.

To be more preci

2条回答
  •  迷失自我
    2021-02-04 05:49

    There is the is-open attribute on the accordion-group which points to a bindable expression. By using this expression you can control accordion items programatically, ex.:

    {{group.content}}

    and the working plunk here: http://plnkr.co/edit/DepnVH?p=preview

提交回复
热议问题