z30-listbox-0003.zul

来自「ZK是一个Ajax Java Web框架」· ZUL 代码 · 共 53 行

ZUL
53 行
字号
<!--
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 + =
减小字号Ctrl + -
显示快捷键?