listbox

Purpose

Components: listbox, listitem, listcell, listhead and listheader.A list box is used to display a number of items in a list. The user may select an item from the list.

Examples

<z:window title="listbox demo" border="normal" width="250px">
    <z:listbox id="box">
        <z:listhead sizable="true">
            <z:listheader label="name" sort="auto"/>
            <z:listheader label="gender" sort="auto"/>
        </z:listhead>
        <z:listitem>
            <z:listcell label="Mary"/>
            <z:listcell label="FEMALE"/>
        </z:listitem>
        <z:listitem>
            <z:listcell label="John"/>
            <z:listcell label="MALE"/>
        </z:listitem>
        <z:listitem>
            <z:listcell label="Jane"/>
            <z:listcell label="FEMALE"/>
        </z:listitem>
        <z:listitem>
            <z:listcell label="Henry"/>
            <z:listcell label="MALE"/>
        </z:listitem>
        <z:listfoot>
            <z:listfooter>
                <z:label value="This is footer1"/>
            </z:listfooter>
            <z:listfooter>
                <z:label value="This is footer2"/>
            </z:listfooter>
        </z:listfoot>
    </z:listbox>
</z:window>

Description

Attributes

ZK Official Reference

Component Reference

Show listbox Component Reference

Java API

Show listbox Java API