GraemeBryce
1 Feb 2008, 6:21 AM
I have a situation where I wish to control the look of a rendered tab.
At present I can use the cls config in creating each child of tabPanel in order to impact the panel itself and I can use iconCls to impact the icon drawn in the text <span> of the tab. I am unable however to impact the <li> that defines the overall tab.
I would propose that no new config items are required, prehaps not even a documentation change, simple that the cls config of any direct child of tabpanel be added to the <li> when the tab strip is rendered.
The only alternative being to add a new config tabCls which would require slightly more work but would guarantee it is a non breaking change for anyone already using a cls to impact only the panel itself.
WHY do I want to do this you ask.
I am rendering a number of tabs, the first containing a grid of say Clients and the others containing items subordinate to clients such as ClientNotes and ClientContacts. All but the first tab are disabled until a row is selected. It would improve the UI if I could cause a font-size increase or colour difference to make it clear to users that this first tab is the master of all the others.
I can see reasons why others may wish to control the rendering of tabs in the strip by applying a class.
Clearly it is possible to listen to the render event but as other items inherit or cls, iconCls and bodyCls then tabCls appears reasonable.
Regards: G.
At present I can use the cls config in creating each child of tabPanel in order to impact the panel itself and I can use iconCls to impact the icon drawn in the text <span> of the tab. I am unable however to impact the <li> that defines the overall tab.
I would propose that no new config items are required, prehaps not even a documentation change, simple that the cls config of any direct child of tabpanel be added to the <li> when the tab strip is rendered.
The only alternative being to add a new config tabCls which would require slightly more work but would guarantee it is a non breaking change for anyone already using a cls to impact only the panel itself.
WHY do I want to do this you ask.
I am rendering a number of tabs, the first containing a grid of say Clients and the others containing items subordinate to clients such as ClientNotes and ClientContacts. All but the first tab are disabled until a row is selected. It would improve the UI if I could cause a font-size increase or colour difference to make it clear to users that this first tab is the master of all the others.
I can see reasons why others may wish to control the rendering of tabs in the strip by applying a class.
Clearly it is possible to listen to the render event but as other items inherit or cls, iconCls and bodyCls then tabCls appears reasonable.
Regards: G.