The contentStyle Property

From Documentation
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!    

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.

Last Update : 2022/01/19

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