Angularjs accordion ng-click on panel-header

后端 未结 3 1717
有刺的猬
有刺的猬 2021-02-01 04:42

In AngularJS UI Bootstrap I want to activate isopen when panel-heading is clicked, but I couldn\'t find a way. In this version is activated onl

3条回答
  •  盖世英雄少女心
    2021-02-01 05:23

    EDIT: A better solution is to move ng-click="isopen=!isopen" to the accordion-group element. This way the panel is opened/closed clicking anywhere on the panel-heading, including the edges.

    
        
            
               I can have markup, too! 
               
               
            
            This is just some content to illustrate fancy headings.
        
    
    

    END EDIT

    enclose the content of in a

    
        
            
               
    I can have markup, too!
    This is just some content to illustrate fancy headings.

提交回复
热议问题