-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi all
Using zk 5.0.7 I am calling setSclass("myClass") on a selected tab. I expect the css selctor to be .z-tab-seld.myClass, but it falls back to .z-tab.myClass. I have to select the tab again for it to be .z-tab-seld.myClass.
Is this a bug or am I doing something wrong?
Thanks in advance.
I modified a demo in zk sandbox to show the problem, here's the code:
<tabbox width="250px"> <tabs> <tab id="tab1" label="Tab 1"/> <tab label="Tab 2"/> </tabs> <toolbar width="90px"> <toolbarbutton image="/img/live.gif" onClick='tab1.setSclass("myclass")' /> </toolbar> <tabpanels> <tabpanel>This is panel 1</tabpanel> <tabpanel>This is panel 2 The second panel</tabpanel> </tabpanels> </tabbox>
When tab1 is selected and you click the toolbarbutton the tab won't look selected anymore (though it in practice still is)
Asked: 2012-03-22 14:06:23 +0800
Seen: 254 times
Last updated: Jun 11 '12