[英]Angular-ui Bootstrap Tabs - Is there a way to prevent tab selection?
I am using Angular-UI Bootstrap tabs and would like to prevent tab selection during the select event handler. 我正在使用Angular-UI Bootstrap选项卡,并希望防止在select事件处理程序期间选择选项卡。 I have tried setting the tab.active to false and setting another tab.active to true, but that doesn't appear to work while in the context of the select event handler.
我尝试将tab.active设置为false并将另一个tab.active设置为true,但这在select事件处理程序的上下文中似乎不起作用。
You can try 'disabled' instead. 您可以尝试“禁用”。 Something similar to:
类似于:
ng-click="tabs.disabled = ! tabs.disabled"
that should disable or enable the tab. 应该禁用或启用该标签。
事实证明,当我似乎需要一个具有保留布尔值的属性的对象时,我试图将状态设置为原始范围值。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.