我想有条件地启用/禁用按钮上的工具提示。 我这样做是为了测试禁用状态:
<button type="button"
uib-tooltip="test" tooltip-is-open="false">
</button>
但是工具提示显示了。 如何禁用工具提示?
谢谢
最佳答案
您可以使用tooltip-enable="flag"
,其中flag
是根据您的业务逻辑在 Controller 中设置的 bool 值
这是一个 tool-tip enable/disable 的骗子
关于angularjs - uib-工具提示 : conditionally show or hide tooltip,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38693970/