Rowlayout"
Line 3: | Line 3: | ||
= Rowlayout = | = Rowlayout = | ||
− | + | *Java API: <javadoc>org.zkoss.zkmax.zul.RowLayout</javadoc> | |
− | *Java API: <javadoc>org.zkoss.zkmax.zul. | + | *JavaScript API: <javadoc directory="jsdoc">zkmax.layout.RowLayout</javadoc> |
− | *JavaScript API: <javadoc directory="jsdoc">zkmax.layout. | + | *Style Guide: [[ZK_Style_Guide/XUL_Component_Specification | RowLayout]] |
− | *Style Guide: [[ZK_Style_Guide/XUL_Component_Specification | ||
*{{ZK EE}} | *{{ZK EE}} | ||
= Employment/Purpose = | = Employment/Purpose = | ||
− | A <tt> | + | A <tt>rowlayout</tt> lays out a container which can have multiple columns, it offers a 12-column grid out of the box. You can simply chooses the number of columns to occupy for each major content area, and may also skip columns for extra space without inserting space-inducing elements. |
− | + | The following diagram illustrates the rowlayout/rowchildren components and their various configurable parameters. | |
+ | |||
+ | [[Image:ZKComRef_Rowlayout.PNG]] | ||
= Example = | = Example = | ||
− | |||
+ | Using rowlayout component is simple. First, use rowlayout to divide the horizontal space of its parent container into a number of columns. You can also optionally specify the column/spacing ratio. The default number of columns is 12, and the default column/spacing ratio is 1/3, which means column is 3 times wider than the spacing between columns. Spacing could be given as a ratio, a percentage or a floating-point number. | ||
+ | |||
+ | Next, use rowchildren component to place components into an integral number of these columns. You can also optionally specify how many columns to skip ahead. | ||
+ | A sample usage is demonstrated below. | ||
<source lang="xml" > | <source lang="xml" > | ||
− | < | + | <rowlayout ncols="12" spacing="1/3"> |
− | + | <rowchildren colspan="3" offset="2"> | |
− | + | </rowchildren> | |
− | + | </rowlayout> | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | < | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | </ | ||
− | </ | ||
</source> | </source> | ||
Line 80: | Line 35: | ||
! <center>Event Type</center> | ! <center>Event Type</center> | ||
|- | |- | ||
− | | | + | | None |
− | | | + | | None |
− | |||
− | |||
|} | |} | ||
*Inherited Supported Events: [[ZK_Component_Reference/Base_Components/XulElement#Supported_Events | XulElement]] | *Inherited Supported Events: [[ZK_Component_Reference/Base_Components/XulElement#Supported_Events | XulElement]] | ||
=Supported Children= | =Supported Children= | ||
− | *[[ZK_Component_Reference/Layouts/ | + | *[[ZK_Component_Reference/Layouts/Rowlayout/Rowchildren | Rowchildren]] |
=Use Cases= | =Use Cases= | ||
Line 106: | Line 59: | ||
! Version !! Date !! Content | ! Version !! Date !! Content | ||
|- | |- | ||
− | | | + | | |
− | | | + | | |
− | | | + | |] |
|} | |} | ||
{{ZKComponentReferencePageFooter}} | {{ZKComponentReferencePageFooter}} |
Revision as of 10:04, 18 May 2015
Rowlayout
Employment/Purpose
A rowlayout lays out a container which can have multiple columns, it offers a 12-column grid out of the box. You can simply chooses the number of columns to occupy for each major content area, and may also skip columns for extra space without inserting space-inducing elements.
The following diagram illustrates the rowlayout/rowchildren components and their various configurable parameters.
Example
Using rowlayout component is simple. First, use rowlayout to divide the horizontal space of its parent container into a number of columns. You can also optionally specify the column/spacing ratio. The default number of columns is 12, and the default column/spacing ratio is 1/3, which means column is 3 times wider than the spacing between columns. Spacing could be given as a ratio, a percentage or a floating-point number.
Next, use rowchildren component to place components into an integral number of these columns. You can also optionally specify how many columns to skip ahead.
A sample usage is demonstrated below.
<rowlayout ncols="12" spacing="1/3">
<rowchildren colspan="3" offset="2">
</rowchildren>
</rowlayout>
Supported Events
None | None |
- Inherited Supported Events: XulElement
Supported Children
* Rowchildren
Use Cases
Version | Description | Example Location |
---|---|---|
Version History
Version | Date | Content |
---|---|---|
] |