Jump to content

Color each tab in a pagecontrol individually


d.bernaert

Recommended Posts

Hi Dominique,

One possible solution I think.

UniTabSheet1.ClientEvents.ExtEvents ->

function afterrender(sender, eOpts)
{
    var me=sender.tab;
    me.setStyle('background', 'orange');
    me.btnInnerEl.setStyle('color', 'white');
}

image.png.28f4c9a3f9badf830d590c1c772784ba.png

Link to comment
Share on other sites

Small improvement considering: hover, active css.

1. CustomCSS:

.customTab.x-tab-active, .customTab.x-tab-over {
    background: orange !important; 
    filter: brightness(110%);
}

.customTab {
    background: orange; 
}

.customTab .x-tab-inner {
    color: white !important;     
}

2. UniTabSheet1.ClientEvents.ExtEvents ->

function afterrender(sender, eOpts)
{
    sender.tab.addCls('customTab');
}

 

  • Like 1
Link to comment
Share on other sites

  • 5 months later...
  • 5 months later...
On 11/13/2022 at 8:51 PM, Moegamat Alexander said:

Hi

Where do I find documentation about css and what you can do. I need to adjust my tab heights ... its inherited from the emerald theme and I need to overide the tab heights overall ... it looks a bit bulky

css.PNG

please share you solution 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...