The contentStyle Property

From Documentation
Revision as of 07:38, 15 July 2010 by Maya001122 (talk | contribs) (Created page with '{{ZKDevelopersGuidePageHeader}} Some container component such as <tt>window</tt>, <tt>groupbox</tt>, <tt>detail</tt> have a content block, you have to use <tt>contentStyle</tt> …')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
The contentStyle Property


Stop.png This documentation is for an older version of ZK. For the latest one, please click here.


Some container component such as window, groupbox, detail have a content block, you have to use contentStyle to set its style.

For example,

<window title="below is content"  contentStyle="background:yellow">
    Hello, World!    
</window>

Scrollable Window

A typical use of contentStyle is to make a window scrollable as follows.

<window title="Scroll Example" width="150px" height="100px" contentStyle="overflow:auto" >
This is a long line to spread over several lines, and more content to display.
Finally, the scrollbar becomes visible.
This is another line.
</window>



Last Update : 2010/07/15

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