b30-1822564.zul

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

ZUL
47
字号
<?xml version="1.0" encoding="UTF-8"?>
<!--
{{IS_NOTE
	Purpose:
		
	Description:
		
	History:
		Create By Dennis
}}IS_NOTE

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

{{IS_RIGHT
}}IS_RIGHT
-->
<zk>
Column can not resize by drag when start with no row.
It still doesn't work even add row after creation.
	<zscript>
	void addRow1(){
		Row row = new Row();
		row.setParent(rows);
		new Label("Label x").setParent(row);
		new Textbox().setParent(row);
		new Datebox().setParent(row);
	};
	
	</zscript>
	<vbox>
		<div width="500px">
			<button label="add row(end)" onClick="addRow1()"/>
			<button label="setColumnWidth1" onClick='col1.setWidth("20px")'/>
			<button label="setColumnWidth2" onClick='col1.setWidth("100px")'/>
			<button label="setColumnWidth3" onClick='col1.setWidth("200px")'/>
		</div>
		<grid id="g1" width="400px">
			<columns id="cols" sizable="true">
				<column label="Type 50px" id="col1"  align="center" width="50px" style="position:relative;"/>
				<column label="Content" id="col2" align="right"  style="position:relative;"/>
				<column label="AA-BB" id="col3"  style="position:relative;"/>
			</columns>
			<rows id="rows">
			</rows>
		</grid>
	</vbox>
</zk>

⌨️ 快捷键说明

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