The list header which defines the attributes and header of a columen of a list box. Its parent must be
Listhead
.
<window title="listbox demo" border="normal">
<listbox id="box" width="250px">
<listhead sizable="true">
<listheader label="name" sort="auto"/>
<listheader label="gender" sort="auto"/>
</listhead>
<listitem>
<listcell label="Mary"/>
<listcell label="FEMALE"/>
</listitem>
<listitem>
<listcell label="John"/>
<listcell label="MALE"/>
</listitem>
<listitem>
<listcell label="Jane"/>
<listcell label="FEMALE"/>
</listitem>
<listitem>
<listcell label="Henry"/>
<listcell label="MALE"/>
</listitem>
<listfoot >
<listfooter><label value="This is footer1"/></listfooter>
<listfooter><label value="This is footer2"/></listfooter>
</listfoot>
</listbox>
</window>
|
Name |
Event Type |
|---|---|
|
|
|
|
|
|
|
|
|
|
Property |
Description |
Data Type |
|---|---|---|
|
|
|
|
|
|
|
|
|
|
Sets the sort direction. Value: ascending|descending|natural |
|
|
|
the maximal length of each item's label. |
|
|
Name |
Description |
Return Data Type |
|---|---|---|
|
|
Returns the
|
|
|
|
|
|
|
|
Returns the style class. |
|
|
|
It invokes
|
|
|
|
|
|
|
|
Can only be
|
|
|
|
Sets the ascending sorter with the class name, or null for no sorter for the ascending order. |
|
|
|
Sets the descending sorter with the class name, or null for no sorter for the descending order. |
|
|
|
Sorts the rows (
|
|
|
|
Sorts the rows (
|
|