# Perspective Tab Container Individual Tab Style change

**URL:** <https://forum.inductiveautomation.com/t/perspective-tab-container-individual-tab-style-change/39533>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [October 9, 2020, 12:38pm UTC](https://forum.inductiveautomation.com/t/perspective-tab-container-individual-tab-style-change/39533 "2020-10-09T12:38:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ott.sellis](https://avatars.discourse-cdn.com/v4/letter/o/bbce88/32.png) [@ott.sellis](https://forum.inductiveautomation.com/u/ott.sellis)\
**Post date:** [October 9, 2020, 12:38pm UTC](https://forum.inductiveautomation.com/t/perspective-tab-container-individual-tab-style-change/39533/1 "2020-10-09T12:38:31Z")

</div>

Hi,

Is there any way to alter the style of a single tab in a tab container?

Asking this, because we would like to paint the “Alarms” tab with var(–error) or var(–warningSecondary) based on if there are any “ActiveUnAcked” or “ActiveAcked” errors with the current object.

To make it plain an simple:

I would like to paint only this tab red or yellow as we have active alarms.

 ![Untitled](https://us1.discourse-cdn.com/inductiveautomation/original/3X/4/c/4c8e58b426bac1d27c563fd9af492614dfa21c32.png)

---

<div class="post-metadata">

**Author:** ![andreas](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/andreas/32/18981_2.png) [@andreas](https://forum.inductiveautomation.com/u/andreas)\
**Post date:** [October 23, 2020, 8:46am UTC](https://forum.inductiveautomation.com/t/perspective-tab-container-individual-tab-style-change/39533/2 "2020-10-23T08:46:03Z")

</div>

Hi,

By passing in a view to the tabs, you can customize them as you want and control the individual tab backgrounds.  
For instructions, follow this post:

> [@Perspective Tab Container](http://forum.inductiveautomation.com/t/perspective-tab-container/35416/2):
>
> Since Tabs can render as either text or Views, you just need to supply a View which has both an Icon and a Label present. (Update: [documentation](https://docs.inductiveautomation.com/display/DOC80/Perspective+-+Tab+Container)) [Screen Shot 2020-06-08 at 9.50.25 AM] Here’s how I did this: Right-click props.tabs[1], and select “Change To” and select “Object”. Expand props.tabs[1] and select “Add Object Member”, then supply a key of “viewPath”. Supply a valid viewPath. [Screen Shot 2020-06-08 at 9.50.14 AM] In my project, there exists a View (“Experimentation/Repl”) which…

---

<div class="post-metadata">

**Author:** ![ott.sellis](https://avatars.discourse-cdn.com/v4/letter/o/bbce88/32.png) [@ott.sellis](https://forum.inductiveautomation.com/u/ott.sellis)\
**Post date:** [October 23, 2020, 9:11am UTC](https://forum.inductiveautomation.com/t/perspective-tab-container-individual-tab-style-change/39533/3 "2020-10-23T09:11:14Z")

</div>

Thank you for the information, @andreas!

What I came up with was a solution to have an alarm icon in the background of the Tab (lower in the z-order) and then set the inactive background of the tabs to be transparent. This solution is looking pretty decent actually and it goes with my overall theme of showing alarms via alarm icon.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/2/6/269dc07a17480a11156b5143126e2b76ece4af14.png)
