【问题标题】:Ui-Bootstrap document click Accordion collapseUi-Bootstrap 文档点击手风琴折叠
【发布时间】:2016-02-20 04:44:20
【问题描述】:

我最近切换到 ui-bootstrap 以获取 Angular 应用程序。使用常规引导程序,我可以使用以下内容折叠打开的手风琴。 ui-bootstrap 等价的点击事件是什么?

    $(document).on('click',function(){
        $('.collapse').collapse('hide');
    });

【问题讨论】:

    标签: jquery angularjs angular-ui-bootstrap


    【解决方案1】:

    我认为这是一个默认的引导功能。只需将in 添加到collapse 类。

    您可以在下面使用此代码。

    <button class="btn btn-primary" type="button" data-toggle="collapse" data-  target="#collapseExample" aria-expanded="true" aria-controls="collapseExample">
        Button with data-target
    </button>
    <div class="collapse in" id="collapseExample">
         <div class="well">
          asf sdf adsf asdf fd asdf
         </div>
    </div>
    

    检查此链接...
    bootstrap collapse

    【讨论】:

      猜你喜欢
      • 2016-02-28
      • 1970-01-01
      • 2015-12-08
      • 2014-02-18
      • 1970-01-01
      • 1970-01-01
      • 2014-06-04
      • 1970-01-01
      • 2012-03-04
      相关资源
      最近更新 更多