📄 z30-listbox-0003.zul
字号:
<!--
Z30-listbox-0003.zul
{{IS_NOTE
Purpose:
Description:
History:
Thu Oct 27 21:18:02 2005, Created by tomyeh
}}IS_NOTE
Copyright (C) 2005 Potix Corporation. All Rights Reserved.
{{IS_RIGHT
}}IS_RIGHT
-->
<window>
Test dynamically select the second listitem.
<listbox rows="3" width="400px">
<listhead>
<listheader label="Population"/>
<listheader label="Percentage"/>
<listheader label="Description"/>
</listhead>
<listitem id="li0" value="A">
<listcell label="A. Graduate"/>
<listcell label="20%"/>
<listcell label="More or less"/>
</listitem>
<listitem id="li1" value="B">
<listcell label="B. College"/>
<listcell label="23%"/>
<listcell label="More or less"/>
</listitem>
<listitem value="C" selected="true">
<listcell label="C. High School"/>
<listcell label="40%"/>
<listcell label="More or less"/>
</listitem>
<listitem value="D">
<listcell label="D. Junior High School"/>
<listcell label="10%"/>
<listcell label="More or less"/>
</listitem>
<listitem value="E">
<listcell label="F. Others"/>
<listcell label="17%"/>
<listcell label="More or less"/>
</listitem>
</listbox>
<button label="Select 2nd" onClick="li1.selected = true"/>
</window>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -