The Style Class (sclass)
From Documentation
Revision as of 07:37, 15 July 2010 by Maya001122 (talk | contribs) (Created page with '{{ZKDevelopersGuidePageHeader}} The style component is used to specify CSS styles in a ZUML page. The simplest format is as follows. You can define the <tt>style</tt> property o…')
This documentation is for an older version of ZK. For the latest one, please click here.
The style component is used to specify CSS styles in a ZUML page. The simplest format is as follows. You can define the style property of a component.
<window>
<textbox style="color: red; font-style: oblique;"/>
</window>
Or define CSS inside <style/>, and assign it to component through sclass
<window>
<style>
.red {
color: blue;
font-style: oblique;
}
</style>
<textbox sclass="red" />
</window>