# Tab container disabling property for individual tab

**URL:** <https://forum.inductiveautomation.com/t/tab-container-disabling-property-for-individual-tab/80682>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [October 19, 2023, 6:22am UTC](https://forum.inductiveautomation.com/t/tab-container-disabling-property-for-individual-tab/80682 "2023-10-19T06:22:05Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Archana\_Chandran](https://avatars.discourse-cdn.com/v4/letter/a/71c47a/32.png) [@Archana\_Chandran](https://forum.inductiveautomation.com/u/Archana_Chandran)\
**Post date:** [October 19, 2023, 6:22am UTC](https://forum.inductiveautomation.com/t/tab-container-disabling-property-for-individual-tab/80682/1 "2023-10-19T06:22:05Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![kaushik.shah](https://avatars.discourse-cdn.com/v4/letter/k/34f0e0/32.png) [@kaushik.shah](https://forum.inductiveautomation.com/u/kaushik.shah)\
**Post date:** [October 19, 2023, 8:14am UTC](https://forum.inductiveautomation.com/t/tab-container-disabling-property-for-individual-tab/80682/2 "2023-10-19T08:14:03Z")

</div>

do you mean tab strip in vision?

---

<div class="post-metadata">

**Author:** ![pascal.fragnoud](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pascal.fragnoud/32/24728_2.png) [@pascal.fragnoud](https://forum.inductiveautomation.com/u/pascal.fragnoud)\
**Post date:** [October 19, 2023, 8:45am UTC](https://forum.inductiveautomation.com/t/tab-container-disabling-property-for-individual-tab/80682/3 "2023-10-19T08:45:52Z")

</div>

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:

```css
} .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.

---

<div class="post-metadata">

**Author:** ![Archana\_Chandran](https://avatars.discourse-cdn.com/v4/letter/a/71c47a/32.png) [@Archana\_Chandran](https://forum.inductiveautomation.com/u/Archana_Chandran)\
**Post date:** [October 19, 2023, 8:48am UTC](https://forum.inductiveautomation.com/t/tab-container-disabling-property-for-individual-tab/80682/4 "2023-10-19T08:48:43Z")

</div>

Tab container in perspective

---

<div class="post-metadata">

**Author:** ![Archana\_Chandran](https://avatars.discourse-cdn.com/v4/letter/a/71c47a/32.png) [@Archana\_Chandran](https://forum.inductiveautomation.com/u/Archana_Chandran)\
**Post date:** [October 19, 2023, 8:49am UTC](https://forum.inductiveautomation.com/t/tab-container-disabling-property-for-individual-tab/80682/5 "2023-10-19T08:49:25Z")

</div>

Thanks ..will try this

---

<div class="post-metadata">

**Author:** ![victordcq](https://avatars.discourse-cdn.com/v4/letter/v/f6c823/32.png) [@victordcq](https://forum.inductiveautomation.com/u/victordcq)\
**Post date:** [October 19, 2023, 9:22am UTC](https://forum.inductiveautomation.com/t/tab-container-disabling-property-for-individual-tab/80682/6 "2023-10-19T09:22:20Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![pascal.fragnoud](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pascal.fragnoud/32/24728_2.png) [@pascal.fragnoud](https://forum.inductiveautomation.com/u/pascal.fragnoud)\
**Post date:** [October 19, 2023, 9:26am UTC](https://forum.inductiveautomation.com/t/tab-container-disabling-property-for-individual-tab/80682/7 "2023-10-19T09:26:13Z")

</div>

Yea, all they would have to do is uncheck the box here:  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/6/3/6315c72cedceea53e446334843d16220ba9a5eb6.png)

Even if you use this, change the content view/container to something that shows the user shouldn't be here.
