z35-panel-002.zul

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

ZUL
42 行
字号
<window>
<panel id="p1" title="Panel Component" border="normal" width="500px" height="150px">
	<panelchildren>
		1. Click "Change floatable" button and the panel should float.
		<separator />
		2. Click "Change movable" button and move the panel.(If the panel doesn't float, it shouldn't be able to move.)
		<separator />
		<button label="Change floatable">
			<attribute name="onClick">
					p1.floatable=!p1.floatable;
			</attribute>
		</button>
		<button label="Change movable">
			<attribute name="onClick">	
					p1.movable=!p1.movable;
			</attribute>
		</button>
		<separator />
		3. Click following buttons and it should work well.
	</panelchildren>
</panel>
		<button label="Change collapsible">
			<attribute name="onClick">
					p1.collapsible=!p1.collapsible;
			</attribute>
		</button>
		<button label="Change minimizable">
			<attribute name="onClick">
					p1.minimizable=!p1.minimizable;
			</attribute>
		</button>
		<button label="Change maximizable">
			<attribute name="onClick">
					p1.maximizable=!p1.maximizable;
			</attribute>
		</button>
		<button label="Change closable">
			<attribute name="onClick">
					p1.closable=!p1.closable;
			</attribute>
		</button>
</window>

⌨️ 快捷键说明

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