-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Normal
-
Affects Version/s: 5.0.9
-
Component/s: None
-
None
-
None
As code below, click add tabpanel then tab only the tabpanel is added,
click it again, nothing happend.
<zk>
<tabbox id="tabbox" mold="accordion" width="400px">
<tabs id="tabs"></tabs>
<tabpanels id="tabpanels"></tabpanels>
</tabbox>
<button id="addTabAndPanel" label="add tabpanel then tab">
<attribute name="onClick">
<![CDATA[
Tabpanel tabpanel = new Tabpanel();
Label label = new Label("tabpanel");
label.setParent(tabpanel);
tabpanel.setParent(tabpanels);
Tab tab = new Tab();
tab.setClosable(true);
tab.setLabel("tab");
tab.setParent(tabs);
]]>
</attribute>
</button>
</zk>