z35-grid-201.zul

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

ZUL
76 行
字号
<?xml version="1.0" encoding="UTF-8"?><!--F35-2019158.zul{{IS_NOTE	Purpose:			Description:			History:		Wed Jul 16 12:18:24 TST 2008, Created by jumperchen}}IS_NOTECopyright (C) 2008 Potix Corporation. All Rights Reserved.{{IS_RIGHT}}IS_RIGHT--><window title="Column's Menu Demo" border="normal" width="500px">	<zscript>	import org.zkoss.zkdemo.userguide.*;	Comparator asc = new RowLabelComparator(true),		dsc = new RowLabelComparator(false);	</zscript>		<grid id="gd">		<columns sizable="true" menupopup="auto" id="cols">			<column id="col" label="Type" sortAscending="&#36;{asc}" sortDescending="&#36;{dsc}"/>			<column id="col1" label="Type1" sortAscending="&#36;{asc}" sortDescending="&#36;{dsc}"/>			<column id="col2" label="Content"/>		</columns>		<rows id="rs">			<row id="r1">				<label value="File:" id="lb1"/>				<label value="File1:"/>				<textbox width="98%" id="tb1"/>			</row>			<row id="r2">				<label value="File:" id="lb2"/>				<label value="File1:"/>				<textbox width="98%" id="tb2"/>			</row>			<row id="r3">				<label value="Files:" id="lb3"/>				<label value="File1s:"/>				<textbox width="98%" id="tb3"/>			</row>					</rows>	</grid>	<vbox>	<button label="1.remove column1">		<attribute name="onClick">			cols.removeChild(col);			r1.removeChild(lb1);			r2.removeChild(lb2);			r3.removeChild(lb3);					</attribute>	</button>	<label value="the menupopup of column2 should work properly"/>	<button label="2.remove column2">		<attribute name="onClick">			cols.removeChild(col1);			r1.removeChild(tb1);			r2.removeChild(tb2);			r3.removeChild(tb3);					</attribute>	</button>	<label value="the menupopup of column3 should work properly"/>	<button label="3.remove sorting of column1" onClick='col.setSortAscending(null);col.setSortDescending(null)'/>	<label value="the sorting button of column1 should dispear"/>	<button label="4.remove sorting of column2" onClick='col1.setSortAscending(null);col1.setSortDescending(null)'/>		<label value="the sorting button of column2 should dispear"/>	</vbox></window>				

⌨️ 快捷键说明

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