Style"
From Documentation
Tmillsclare (talk | contribs) m (Created page with 'init') |
Jumperchen (talk | contribs) |
||
(12 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
− | + | {{ZKComponentReferencePageHeader}} | |
+ | |||
+ | = Style = | ||
+ | |||
+ | *Demonstration: [http://www.zkoss.org/zkdemo/styling/custom_style Style] | ||
+ | *Java API: <javadoc>org.zkoss.zul.Style </javadoc> | ||
+ | *JavaScript API: <javadoc directory="jsdoc">zul.utl.Style</javadoc> | ||
+ | *Style Guide: N/A | ||
+ | |||
+ | = Employment/Purpose = | ||
+ | The style component used to specify <tt>CSS</tt> styles for the owner desktop. | ||
+ | |||
+ | '''Note:''' | ||
+ | *a <tt>style </tt>component can appear anywhere in a <tt>ZUML</tt> page, but it affects all components in the same <tt>desktop</tt>. | ||
+ | *getContent() simply get the string that is set by setContent(). If you call setSrc() or call the constructor of Style(), getContent() still gets null. | ||
+ | |||
+ | = Example = | ||
+ | |||
+ | <br/> | ||
+ | [[Image:ZKComRef_Style_Example.png]] | ||
+ | |||
+ | <source lang="xml" > | ||
+ | <style> a{ color:red; }</style> | ||
+ | </source> | ||
+ | |||
+ | =Supported Events= | ||
+ | |||
+ | {| border="1" | width="100%" | ||
+ | ! <center>Name</center> | ||
+ | ! <center>Event Type</center> | ||
+ | |- | ||
+ | | None | ||
+ | | None | ||
+ | |} | ||
+ | *Inherited Supported Events: [[ZK_Component_Reference/Base_Components/AbstractComponent#Supported_Events | AbstractComponent]] | ||
+ | |||
+ | =Supported Children= | ||
+ | |||
+ | *NONE | ||
+ | |||
+ | =Use Cases= | ||
+ | |||
+ | {| border='1px' | width="100%" | ||
+ | ! Version !! Description !! Example Location | ||
+ | |- | ||
+ | | | ||
+ | | | ||
+ | | | ||
+ | |} | ||
+ | |||
+ | =Version History= | ||
+ | {{LastUpdated}} | ||
+ | {| border='1px' | width="100%" | ||
+ | ! Version !! Date !! Content | ||
+ | |- | ||
+ | | 5.0.3 | ||
+ | | June 2010 | ||
+ | | The media property is supported. | ||
+ | |} | ||
+ | |||
+ | {{ZKComponentReferencePageFooter}} |
Revision as of 07:19, 19 November 2010
Style
Employment/Purpose
The style component used to specify CSS styles for the owner desktop.
Note:
- a style component can appear anywhere in a ZUML page, but it affects all components in the same desktop.
- getContent() simply get the string that is set by setContent(). If you call setSrc() or call the constructor of Style(), getContent() still gets null.
Example
<style> a{ color:red; }</style>
Supported Events
None | None |
- Inherited Supported Events: AbstractComponent
Supported Children
*NONE
Use Cases
Version | Description | Example Location |
---|---|---|
Version History
Version | Date | Content |
---|---|---|
5.0.3 | June 2010 | The media property is supported. |