📄 z35-panel-001.zul
字号:
<window>
<panel id="p1" width="500px">
<panelchildren>
Change view: Click following buttons and it should work well.
</panelchildren>
</panel>
<button label="Change title">
<attribute name="onClick">
if(p1.title=="")
p1.setTitle("Panel Component");
else
p1.setTitle("");
</attribute>
</button>
<button label="Change border">
<attribute name="onClick">
if(p1.border=="none")
p1.setBorder("normal");
else
p1.setBorder("none");
</attribute>
</button>
<button label="Change framable">
<attribute name="onClick">
p1.framable=!p1.framable;
</attribute>
</button>
<button label="Change width and height">
<attribute name="onClick">
if(p1.width.equals("500px")) {
p1.setWidth("700px");
p1.setHeight("300px");
} else {
p1.setWidth("500px");
p1.setHeight("150px");
}
</attribute>
</button>
</window>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -