tabbox

Purpose

A tabbox is a container used to display a set of tabbed groups of components. A row of tabs is displayed at the top (or left or other location) of tabbox which may be used to switch between each group. It allows developers to separate a large number of components into several groups (each group is contained in a tabpanel). Only one group is visible at the time, such that the user interface won't be too complicate to read. Once the tab of an invisible group is clicked, it becomes visible and the previous visible group becomes invisible.The visible group is called selected , which can be retrieved by use of Tabbox.getSelectedPanel() or Tabbox.getSelectedIndex().

Examples

<z:tabbox width="400px" height="100px">
    <z:tabs>
        <z:tab label="Tab 1"/>
        <z:tab label="Tab 2"/>
    </z:tabs>
    <z:tabpanels>
        <z:tabpanel>This is panel 1</z:tabpanel>
        <z:tabpanel>This is panel 2</z:tabpanel>
    </z:tabpanels>
</z:tabbox>
<z:space/>
<z:tabbox width="400px" mold="accordion">
    <z:tabs>
        <z:tab label="Tab 3"/>
        <z:tab label="Tab 4"/>
    </z:tabs>
    <z:tabpanels>
        <z:tabpanel>This is panel 3</z:tabpanel>
        <z:tabpanel>This is panel 4</z:tabpanel>
    </z:tabpanels>
</z:tabbox>

Description

Attributes

ZK Official Reference

Component Reference

Show tabbox Component Reference

Java API

Show tabbox Java API