b30-1968434.zul

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

ZUL
54
字号
<?xml version="1.0" encoding="UTF-8"?><!--B30-1968434.zul{{IS_NOTE	Purpose:			Description:			History:		Wed May 21 16:35:13 TST 2008, Created by jumperchen}}IS_NOTECopyright (C) 2008 Potix Corporation. All Rights Reserved.{{IS_RIGHT}}IS_RIGHT--><window>		In IE, when you click the "add Tab" button, then the layout of gird should not be out of the tabpanel.	<button label="add Tab" onClick="openNewTab()"/>		<tabbox  width="500px" height="300px">		<tabs id="tbsMain"/>		<tabpanels id="tbpMain"/>	</tabbox>	<zscript><![CDATA[	public void openNewTab()	{		Tabpanel tabPanel = new Tabpanel();		tbpMain.appendChild(tabPanel);				Tab tab = new Tab();		tab.setLabel("Tab2");		tbsMain.appendChild(tab);		Grid g = new Grid();		Rows rows = new Rows();		for (int i = 0; i < 3; i++) {			Row r = new Row();			r.appendChild(new Label("Test " + i));			r.setParent(rows);		}		rows.setParent(g);		g.setWidth("200px");		g.setHeight("100px");		tabPanel.appendChild(g);				tab.setSelected(true);	}	]]></zscript></window>

⌨️ 快捷键说明

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