b30-1822727.zul

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

ZUL
59
字号
<window title="listbox checkmark demo" border="normal">
<html><![CDATA[
The selection of listbox is not correct when use toggle multiple.<br/>
reproducible step.<br/>
1.select Henry and Dennis<br/>
2.click toogle multiple ,<br/>
3.click toogle multiple again.<br/>
4.disselect (Jane,) Henry.<br/>
5.click invalidate.<br/>
<br/>
If Henry is still selected, it is bug.<br/>
<br/>
it also happen when you select Mary,John,Jane at step 1(, and disselect
Jane,John in step 4).<br/>
<br/>
]]></html>
	<button label="Toggle multiple" onClick="box.multiple = !box.multiple"/>
	<button label="Invalidate" onClick="box.invalidate()"/>
	<separator bar="true"/>
	<listbox id="box" width="460px" multiple="true" checkmark="true">
		<listhead>
			<listheader label="Name"/>
			<listheader label="Gender"/>
			<listheader label="Age"/>
			<listheader label="Description"/>
		</listhead>
		<listitem>
			<listcell label="Mary"/>
			<listcell label="FEMALE"/>
			<listcell label="18"/>
			<listcell label="A young lady."/>
		</listitem>
		<listitem>
			<listcell label="John"/>
			<listcell label="MALE"/>
			<listcell label="20"/>
			<listcell label="A college student."/>
		</listitem>
		<listitem>
			<listcell label="Jane"/>
			<listcell label="FEMALE"/>
			<listcell label="32"/>
			<listcell label="A remarkable artist."/>
		</listitem>
		<listitem>
			<listcell label="Henry"/>
			<listcell label="MALE"/>
			<listcell label="29"/>
			<listcell label="A graduate."/>
		</listitem>
		<listitem>
			<listcell label="Dennis"/>
			<listcell label="MALE"/>
			<listcell label="30"/>
			<listcell label="A developer"/>
		</listitem>
	</listbox>		
</window>
				

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?