Center"
From Documentation
m |
m ((via JWB)) |
||
(6 intermediate revisions by 3 users not shown) | |||
Line 17: | Line 17: | ||
<source lang="xml" > | <source lang="xml" > | ||
− | <borderlayout height=" | + | <borderlayout height="450px"> |
− | + | <north title="North" maxsize="300" size="50%" splittable="true" collapsible="true"> | |
− | + | <borderlayout> | |
− | + | <west title="West" size="25%" flex="true" maxsize="250" splittable="true" collapsible="true"> | |
− | + | <div style="background:#B8D335"> | |
− | + | <label value="25%" | |
− | + | style="color:white;font-size:50px" /> | |
− | + | </div> | |
− | + | </west> | |
− | + | <center border="none"> | |
− | + | <div style="background:#E6D92C" vflex="1"> | |
− | + | <label value="25%" | |
− | + | style="color:white;font-size:50px" /> | |
− | + | </div> | |
− | + | </center> | |
− | + | <east size="50%" border="none"> | |
− | + | <label value="Here is a non-border" | |
− | + | style="color:gray;font-size:30px" /> | |
− | + | </east> | |
− | + | </borderlayout> | |
− | + | </north> | |
− | + | <center border="0"> | |
− | + | <borderlayout> | |
− | + | <west maxsize="600" size="30%" border="0" splittable="true"> | |
− | + | <div style="background:#E6D92C" vflex="1"> | |
− | + | <label value="30%" | |
− | + | style="color:white;font-size:50px" /> | |
− | + | </div> | |
− | + | </west> | |
− | + | <center> | |
− | + | <label value="Here is a border" | |
− | + | style="color:gray;font-size:30px" /> | |
− | + | </center> | |
− | + | <east title="East" size="30%" collapsible="true"> | |
− | + | <div style="background:#B8D335" vflex="1"> | |
− | + | <label value="30%" | |
− | + | style="color:white;font-size:50px" /> | |
− | + | </div> | |
− | + | </east> | |
− | + | </borderlayout> | |
− | + | </center> | |
− | + | </borderlayout> | |
</source> | </source> | ||
+ | =Properties and Features= | ||
+ | == Caption == | ||
+ | A layout region might have a caption, which is specified by declaring a child component called caption. | ||
+ | {{ZK EE}} | ||
+ | {{versionSince| 6.5.0}} | ||
+ | <source lang="xml" > | ||
+ | <borderlayout> | ||
+ | <center> | ||
+ | <caption label="search" image="/img/live.gif"> | ||
+ | <combobox> | ||
+ | <comboitem label="item 1" /> | ||
+ | <comboitem label="item 2" /> | ||
+ | <comboitem label="item 3" /> | ||
+ | <comboitem label="item 4" /> | ||
+ | </combobox> | ||
+ | </caption> | ||
+ | <div> | ||
+ | Content | ||
+ | </div> | ||
+ | </center> | ||
+ | </borderlayout> | ||
+ | </source> | ||
+ | |||
+ | =How to Layout= | ||
+ | For more details, please refer to [[ZK_Component_Reference/Layouts/Borderlayout#How_to_Layout|Borderlayout]]. | ||
=Supported Events= | =Supported Events= | ||
− | {| | + | {| class='wikitable' | width="100%" |
! <center>Name</center> | ! <center>Name</center> | ||
! <center>Event Type</center> | ! <center>Event Type</center> | ||
Line 85: | Line 110: | ||
=Version History= | =Version History= | ||
{{LastUpdated}} | {{LastUpdated}} | ||
− | {| | + | {| class='wikitable' | width="100%" |
! Version !! Date !! Content | ! Version !! Date !! Content | ||
|- | |- | ||
− | | | + | | 6.5.0 |
− | | | + | | June 2012 |
− | | | + | | [http://tracker.zkoss.org/browse/ZK-969 ZK-969]: The LayoutRegion component support caption component as it's title |
|} | |} | ||
{{ZKComponentReferencePageFooter}} | {{ZKComponentReferencePageFooter}} |
Latest revision as of 13:11, 7 January 2022
Center
- Demonstration: Borderlayout
- Java API: Center
- JavaScript API: Center
- Style Guide: Center
Employment/Purpose
A center region of a border layout and only allows one component as its child.
Example
<borderlayout height="450px">
<north title="North" maxsize="300" size="50%" splittable="true" collapsible="true">
<borderlayout>
<west title="West" size="25%" flex="true" maxsize="250" splittable="true" collapsible="true">
<div style="background:#B8D335">
<label value="25%"
style="color:white;font-size:50px" />
</div>
</west>
<center border="none">
<div style="background:#E6D92C" vflex="1">
<label value="25%"
style="color:white;font-size:50px" />
</div>
</center>
<east size="50%" border="none">
<label value="Here is a non-border"
style="color:gray;font-size:30px" />
</east>
</borderlayout>
</north>
<center border="0">
<borderlayout>
<west maxsize="600" size="30%" border="0" splittable="true">
<div style="background:#E6D92C" vflex="1">
<label value="30%"
style="color:white;font-size:50px" />
</div>
</west>
<center>
<label value="Here is a border"
style="color:gray;font-size:30px" />
</center>
<east title="East" size="30%" collapsible="true">
<div style="background:#B8D335" vflex="1">
<label value="30%"
style="color:white;font-size:50px" />
</div>
</east>
</borderlayout>
</center>
</borderlayout>
Properties and Features
Caption
A layout region might have a caption, which is specified by declaring a child component called caption.
- Available for ZK:
Since 6.5.0
<borderlayout>
<center>
<caption label="search" image="/img/live.gif">
<combobox>
<comboitem label="item 1" />
<comboitem label="item 2" />
<comboitem label="item 3" />
<comboitem label="item 4" />
</combobox>
</caption>
<div>
Content
</div>
</center>
</borderlayout>
How to Layout
For more details, please refer to Borderlayout.
Supported Events
None | None |
- Inherited Supported Events: LayoutRegion
Supported Children
*ALL
Use Cases
Version History
Version | Date | Content |
---|---|---|
6.5.0 | June 2012 | ZK-969: The LayoutRegion component support caption component as it's title |