Miscellaneous"

From Documentation
m
Line 1: Line 1:
{{ZKDevelopersGuidePageHeader}}
+
{{ZKDevelopersReferencePageHeader}}
  
=== Button: use the <tt>os</tt> mold if there are a lot of buttons ===
+
= Button: use the <tt>os</tt> mold if there are a lot of buttons =
  
 
The <tt>trendy</tt> mold of a button provides a better and consistent look for, especially, Internet Explorer 6. Unfortunately, the browser (particularly, Internet Explorer) will be slowed down if there are a lot of button (with <tt>trendy</tt>) in the same page.
 
The <tt>trendy</tt> mold of a button provides a better and consistent look for, especially, Internet Explorer 6. Unfortunately, the browser (particularly, Internet Explorer) will be slowed down if there are a lot of button (with <tt>trendy</tt>) in the same page.
Line 9: Line 9:
 
With ZK 5, you can change the default mold easily. For example,
 
With ZK 5, you can change the default mold easily. For example,
  
<source lang="xml">
+
<syntax lang="xml">
 
<library-property>
 
<library-property>
 
<name>org.zkoss.zul.Button.mold</name>
 
<name>org.zkoss.zul.Button.mold</name>
 
<value>trendy</value>
 
<value>trendy</value>
 
</library-property>
 
</library-property>
</source>
+
</syntax>
  
 
Refer to [[Developer reference Appendix B. WEB-INF/zk.xml Library Properties#class.mold]] for more information.
 
Refer to [[Developer reference Appendix B. WEB-INF/zk.xml Library Properties#class.mold]] for more information.
  
 +
=Version History=
  
{{ ZKDevelopersGuidePageFooter}}
+
{| border='1px' | width="100%"
 +
! Version !! Date !! Content
 +
|-
 +
| &nbsp;
 +
| &nbsp;
 +
| &nbsp;
 +
|}
 +
 
 +
{{ ZKDevelopersReferencePageFooter}}

Revision as of 11:48, 17 September 2010

Button: use the os mold if there are a lot of buttons

The trendy mold of a button provides a better and consistent look for, especially, Internet Explorer 6. Unfortunately, the browser (particularly, Internet Explorer) will be slowed down if there are a lot of button (with trendy) in the same page.

Notice that the default mold is os in ZK 5, while trendy in ZK 3.6.

With ZK 5, you can change the default mold easily. For example,

<syntax lang="xml"> <library-property> <name>org.zkoss.zul.Button.mold</name> <value>trendy</value> </library-property> </syntax>

Refer to Developer reference Appendix B. WEB-INF/zk.xml Library Properties#class.mold for more information.

Version History

Version Date Content
     



Last Update : 2010/09/17

Copyright © Potix Corporation. This article is licensed under GNU Free Documentation License.