📄 mixhtml.zul
字号:
<?xml version="1.0" encoding="UTF-8"?><!--mixHtml.zul{{IS_NOTE Purpose: Description: History: Tue Oct 4 11:31:13 2005, Created by henrichen}}IS_NOTECopyright (C) 2005 Potix Corporation. All Rights Reserved.{{IS_RIGHT}}IS_RIGHT--><window id="demo"> <vbox width="100%"> <html> <attribute name="content"><![CDATA[ <h4>Mixed with HTML elements</h4> <p>Using the special <h:xxx> tag, html code can be mixed in the component elements.</p> ]]></attribute> </html> <groupbox mold="3d" width="100%"> <caption label="View"><button label="Reload" height="18px" use="org.zkoss.zkdemo.userguide.ReloadButton"/></caption> <window id="view"> </window> </groupbox> <groupbox id="tryView" mold="3d" open="false" width="100%"> <caption label="Source"><button label="Try me!" use="org.zkoss.zkdemo.userguide.TryMeButton"/></caption> <textbox id="codeView" use="org.zkoss.zkdemo.userguide.CodeView" class="code" rows="15" width="100%"> <attribute name="value"><![CDATA[<window title="mix HTML demo" xmlns:h="http://www.w3.org/1999/xhtml" xmlns:zk="http://www.zkoss.org/2005/zk"> <h:table border="1"> <h:tr> <h:td>column 1</h:td> <h:td> <listbox id="list" mold="select"> <listitem label="AA"/> <listitem label="BB"/> </listbox> </h:td> <h:td> <h:ul id="ul"> <h:li>The first item.</h:li> <h:li>The second item.</h:li> </h:ul> <h:input type="button" value="Add Item" zk:onClick="addItem()"/> <zscript> import org.zkoss.zhtml.Li; import org.zkoss.zhtml.Text; void addItem() { Li li = new Li(); li.setParent(ul); new Text("Item "+ul.getChildren().size()).setParent(li); } </zscript> </h:td> </h:tr> </h:table></window> ]]></attribute> </textbox> </groupbox> </vbox></window>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -