Caption"

From Documentation
m (Created page with 'init')
 
m
Line 1: Line 1:
init
+
{{ZKComponentReferencePageHeader}}
 +
 
 +
= Caption =
 +
 
 +
* Demonstration: [http://www.zkoss.org/zkdemo/userguide/#l6 Caption]
 +
*Java API: <javadoc>org.zkoss.zul.Caption</javadoc>
 +
*JavaScript API: <javadoc directory="jsdoc">zul.wgt.Caption</javadoc>
 +
 
 +
= Employement/Purpose =
 +
A header for a Groupbox. It may contain either a text label, using LabelElement.setLabel(java.lang.String), or child elements for a more complex caption.
 +
 
 +
 
 +
= Example =
 +
 
 +
[[ZKComRef_Caption_Example.png]]
 +
 
 +
 
 +
<source lang="xml" >
 +
<zk>
 +
    <window border="normal" width="350px">
 +
          <caption label="This is a caption"/>
 +
            <groupbox width="300px">
 +
                  <caption label="fruits"/>
 +
                  <radiogroup onCheck="fruit.value = self.selectedItem.label">
 +
                    <radio label="Apple"/>
 +
                  <radio label="Orange"/>
 +
                  <radio label="Banana"/> 
 +
                  </radiogroup>
 +
            </groupbox>
 +
    </window>
 +
</zk>
 +
</source>
 +
 
 +
 
 +
=Supported Children=
 +
 
 +
*ALL
 +
 
 +
=Use cases=
 +
 
 +
{| border='1px' | width="100%"
 +
! Version !! Description !! Example Location
 +
|-
 +
| 5.0+
 +
| How to use titles and captions inside a [Window Window]
 +
| http://docs.zkoss.org/wiki/Layout_and_Windows#Titles_and_Captions
 +
|}
 +
 
 +
=Version History=
 +
 
 +
 
 +
 
 +
{| border='1px' | width="100%"
 +
! Version !! Date !! Content
 +
|-
 +
| 5.0.1
 +
| 04/20/2010
 +
| Initialization
 +
|}
 +
 
 +
{{ZKComponentReferencePageFooter}}

Revision as of 10:11, 20 April 2010

Caption

Employement/Purpose

A header for a Groupbox. It may contain either a text label, using LabelElement.setLabel(java.lang.String), or child elements for a more complex caption.


Example

ZKComRef_Caption_Example.png


 <zk>
     <window border="normal" width="350px">
          <caption label="This is a caption"/>
             <groupbox width="300px">
                  <caption label="fruits"/>
                  <radiogroup onCheck="fruit.value = self.selectedItem.label">
                     <radio label="Apple"/>
                  <radio label="Orange"/>
                  <radio label="Banana"/>  
                  </radiogroup>
             </groupbox>
     </window>
 </zk>


Supported Children

*ALL

Use cases

Version Description Example Location
5.0+ How to use titles and captions inside a [Window Window] http://docs.zkoss.org/wiki/Layout_and_Windows#Titles_and_Captions

Version History

Version Date Content
5.0.1 04/20/2010 Initialization



Last Update : 2010/04/20

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