The contentStyle Property"

From Documentation
m (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> …')
 
m (correct highlight (via JWB))
 
Line 1: Line 1:
 
{{ZKDevelopersGuidePageHeader}}
 
{{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> to set its style.  
+
Some container component such as <code>window</code>, <code>groupbox</code>, <code>detail</code> have a content block, you have to use <code>contentStyle</code> to set its style.  
  
 
For example,
 
For example,

Latest revision as of 10:41, 19 January 2022

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 : 2022/01/19

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