如何在页面加载的角度引导Accordion中显示多个扩展的手风琴

时间:2014-08-05 15:20:28

标签: angularjs twitter-bootstrap

如何在页面加载的角度引导手风琴中展示多个扩展手风琴,我们非常感谢任何帮助。

1 个答案:

答案 0 :(得分:4)

您希望将close-others属性添加到<accordion>代码中,并为其指定值false

然后,对于您要打开的每个属性,您可以将is-open属性添加到<accordion-group>标记,并为其指定值true

<accordion close-others="false">
    <accordion-group heading="Static Header 1, initially expanded" is-open="true">
      This content will be shown on page load
    </accordion-group>
    <accordion-group heading="Static Header 2, initially collapsed">
      This content will not be shown on page load
    </accordion-group>
    <accordion-group heading="Static Header 3, initially expanded" is-open="true">
      This content will be shown on page load
    </accordion-group>
</accordion>