📄 form.zul
字号:
<?xml version="1.0" encoding="UTF-8"?><!--form.zul{{IS_NOTE Purpose: Description: History: Thu Nov 13 16:07:16 TST 2008, Created by Flyworld}}IS_NOTECopyright (C) 2008 Potix Corporation. All Rights Reserved.{{IS_RIGHT}}IS_RIGHT--><window id="demo" apply="org.zkoss.zkdemo.userguide.DemoWindowComposer"> <html><![CDATA[ <h4>Various Form</h4> <p>Demonstrate input, constraint and captcha.</p> ]]></html> <separator/> <tabbox width="100%" tabscroll="false"> <tabs> <tab id="demoView" label="Demo"/> <tab id="srcView" label="View Source"/> </tabs> <tabpanels> <tabpanel> <window id="view"> </window> </tabpanel> <tabpanel> <panel> <panelchildren> <textbox id="codeView" class="code" rows="20" width="95%"> <attribute name="value"><![CDATA[<grid fixedLayout="true"> <columns> <column label="Type" width="150px" /> <column label="Content" /> </columns> <rows> <row> <label value="UserName" width="150px" /> <textbox value="Jerry" width="150px" /> </row> <row> Password <textbox type="password" value="123456789" width="150px" /> </row> <row> Re-type Password <textbox type="password" value="123456789" width="150px" /> </row> <row> Age: <intbox value="19" constraint="no negative,no zero" width="150px" /> </row> <row> Phone: <intbox constraint="no negative,no zero" width="150px" value="12345678" /> </row> <row> Weight: <decimalbox format="###.##" value="154.32" width="150px" /> </row> <row> Birthday: <vbox> <datebox id="db" width="150px" /> <listbox onSelect="db.setFormat(self.selectedItem.value)" mold="select" rows="1"> <listitem label="Default" value="" /> <listitem label="yyyy/MM/dd" value="yyyy/MM/dd" /> <listitem label="MM-dd-yy" value="MM-dd-yy" /> </listbox> </vbox> </row> <row> Address <vbox> <textbox width="250px" value="123 W. 45 Street, New York, NY 10001" /> <hbox> <label value="Zip code :" /> <intbox constraint="no negative,no zero" width="150px" /> </hbox> </vbox> </row> <row> E-mail: <textbox width="150px" value="zk@zkoss.org" constraint="/.+@.+\.[a-z]+/: Please enter an e-mail address" /> </row> <row> Introduction: <hbox> <textbox id="intro" rows="3" width="250px"> <attribute name="value">I think ZK is the best! </attribute> </textbox> <vbox> More line : <spinner value="3" constraint="no negative,no zero" onChanging="if (event.value.length() > 0 && Integer.parseInt(event.value) > 0) intro.rows = Integer.parseInt(event.value);" /> </vbox> </hbox> </row> <row> Validation <hbox> <vbox> <textbox value="qwasdf" width="150px" /> <captcha id="cpa" length="6" width="150px" height="50px" /> </vbox> <vbox> (Case Insensitive) <button label="Regenerate" onClick="cpa.randomValue(); val.value=cpa.value;" /> </vbox> </hbox> </row> </rows></grid> ]]></attribute> </textbox> </panelchildren> <toolbar mold="panel">
<button id="tryBtn" label="Try me!"/> <button id="reloadBtn" label="Reload" height="18px"/> </toolbar> </panel> </tabpanel> </tabpanels> </tabbox></window>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -