z30-grid-0005.zul

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

ZUL
59
字号
<?xml version="1.0" encoding="UTF-8"?>
<!--
Z30-grid-0005.zul

{{IS_NOTE
	Purpose:
		normal test of grid.
	Description:
		
	History:
		Create by Dennis
}}IS_NOTE

Copyright (C) 2005 Potix Corporation. All Rights Reserved.

{{IS_RIGHT
}}IS_RIGHT
-->
<zk xmlns:n="http://www.zkoss.org/2005/zk/native">
<n:p>Test the complex grid with Auxhead, you can see the layout shows properly and also shows properly after sizing the header.</n:p>
<window title="Test common grid and auxhead.">
  <checkbox label="sizable" onCheck="cs.sizable = self.checked"/>
	<grid>
		<auxhead>
			<auxheader label="A+B" colspan="2"/>
			<auxheader label="C"/>
		</auxhead>	
		<auxhead>
			<auxheader label="A"/>
			<auxheader label="B+C"  colspan="2"/>
		</auxhead>
		<columns id="cs">
			<column label="AA"/>
			<column label="BB"/>
			<column label="CC"/>
		</columns>
		<auxhead>
			<auxheader label="A+B+C" colspan="3"/>
		</auxhead>
		<rows>
			<row>
				<label value="AA01"/>
				<label value="BB01"/>
				<label value="CC01"/>
			</row>
			<row>
				<label value="AA01"/>
				<label value="BB01"/>
				<label value="CC01"/>
			</row>
			<row>
				<label value="AA01"/>
				<label value="BB01"/>
				<label value="CC01"/>
			</row>
		</rows>
	</grid>
</window>
</zk>

⌨️ 快捷键说明

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