I am using ignition version 8.1.18. In that version Tab contaioner has no disable property to disable individual tabs. But i cannot upgrade the version.Is there any way to do the disabling feature through scripting?
do you mean tab strip in vision?
I can't think of a (simple) way to achieve this, but maybe you can disable its content instead ?
Either embed a view and change its path property to a view that just shows "forbidden" or something similar,
Or switch the display
property of this tab's container to false and show another one instead.
If you really want to make the tab itself unclickable, you can use the css property pointer-events: none
.
This will require you to inject css targeting a specific tab. Something like:
} .psc-disable_tab .tab-menu-item[data-index="1"] {pointer-events: none;} {
Where the data index is the index of the tab you want to disable. Then you turn the class on and off to disable/enable the tab.
If you have more than one tab that you want to disable, you'll need as many classes with the corresponding data-index.
Tab container in perspective
Thanks ..will try this
Note that this is not secure. The avarage user wont be able to click it, but css can be edited quite easaliy to make it clickable again, client site.
So dont use this as the only security measure.
Yea, all they would have to do is uncheck the box here:
Even if you use this, change the content view/container to something that shows the user shouldn't be here.