简体   繁体   中英

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. 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.

You can try 'disabled' instead. Something similar to:

ng-click="tabs.disabled = ! tabs.disabled"

that should disable or enable the tab.

事实证明,当我似乎需要一个具有保留布尔值的属性的对象时,我试图将状态设置为原始范围值。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM