javascript - Angular-bootstrap 弹出窗口需要工具提示模块吗?

标签 javascript html angularjs twitter-bootstrap popover

“与 Bootstrap jQuery 插件一样,弹出窗口需要工具提示模块。”

这就是我无法让我的弹出窗口工作的原因吗?什么是工具提示模块,我需要导入其他东西吗?我导入了 Bootstrap、Angular-Bootstrap、Angular 和 Angular-Animate。我仍然无法让像这样简单的东西起作用:

<button uib-popover="test" popover-placement="top" popover-trigger="mouseenter">test</button>

plunker 示例从不导入工具提示模块?

https://angular-ui.github.io/bootstrap/#/popover

最佳答案

它是 Bootstrap JS 框架的一部分。您可以通过在页面上包含 tooltip.js 或 bootstrap.js 文件来启用它。 https://getbootstrap.com/javascript/#tooltips

至于你的问题,它可能是由框架之间的某些版本冲突引起的——我遇到了与你类似的问题,并设法通过将框架(AngularJS、bootstrap、ui-bootstrap)更新到最新版本来使其正常工作。

此外,弹出窗口不适用于禁用的元素(使用 ng-disabled)(请参阅 https://github.com/angular-ui/bootstrap/issues/1025 )

关于javascript - Angular-bootstrap 弹出窗口需要工具提示模块吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37737080/

相关文章:

javascript - IE 尝试在 ASP 中下载 JSON。净 MVC 3

javascript - 为什么 JS 对象会有这样的行为?

html - Bootstrap-4 内容后面的导航栏下拉菜单

javascript - 在 Internet Explorer 的 ag-grid 中移动行选择选择额外的文本

javascript - 捕获所有路由参数

javascript - 通过JQuery加载php页面时出错

javascript - 悬停在节点上时显示节点内的复选框

html - 我们可以使用复选框的 [checked] 属性的方法将其设置为 true/false

angularjs - IE10 选择标签显示带有大括号

jquery - 动态改变控件的高度