tab

Purpose

A specific tab. Clicking on the tab brings the tab panel to the front. You could put a label and an image on it by label and image properties.By setting the closable property to true, a close button is shown for the tab, such that user could close the tab and the corresponding tab panel by clicking the button. Once user clicks on the close button, an onClose event is sent to the tab. It is processed by the onClose method of Tab. Then, onClose, by default, detaches the tab itself and the corresponding tab panel.

Examples

<z:tabbox width="400px" height="150px">
    <z:tabs>
        <z:tab label="Tab 1"/>
        <z:tab label="Tab 2" closable="true" />
    </z:tabs>
    <z:tabpanels>
        <z:tabpanel>This is panel 1</z:tabpanel>
        <z:tabpanel>This is panel 2</z:tabpanel>
    </z:tabpanels>
</z:tabbox>

Description

Attributes

ZK Official Reference

Component Reference

Show tab Component Reference

Java API

Show tab Java API