手动显示 AngularStrap 下拉菜单 - 如何? [英] Display AngularStrap Dropdown Manually - How?

查看:28
本文介绍了手动显示 AngularStrap 下拉菜单 - 如何?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试利用 triggerAngularStrap dropdown> $dropdownProvider 上的配置

I am trying to display an AngularStrap dropdown manually, leveraging the trigger configuration on $dropdownProvider as such

// how dropdown is triggered - click | hover | focus | manual
app.config(function($dropdownProvider) {
    angular.extend($dropdownProvider.defaults, {
        trigger: 'manual'
    });
});

click hover focus 一切正常,但为什么不manual?我还没有发现任何证据证明这个提供的 api 配置选项有效.我该怎么做?

click hover focus all work fine, but why not manual? I have yet to discover any proof that this offered api configuration option works. How can I do this?

事实上,这个问题似乎是在我最初提出问题后发现的,但现在已经关闭,一年多后我仍然没有找到解决方案.

In fact, this issue seems to have been discovered after my original question positing, but is now closed and over a year later I have yet to find a solution still.

问题:缺少有关如何使用 trigger=manual 的文档

我已经举出一个例子来说明我在这方面遇到的困难.为了阐明我的目标,我想在我的