column
Sub-tag of the [row] tag.
Used to format columns within a row.
Summary
- [column width gutter align]...[/col]
| Parameter
|
Description
|
Default
|
| width |
Maximum column width. |
None |
| gutter |
The number of spaces used to separate the column (right side). |
2
|
| align |
Determines text alignment. |
L
|
| spacing |
The line spacing used for wrapped text. |
1
|
| wrap |
Determines wrapping of content beyond width of column. |
Yes
|
Description
This is a sub-tag of the [row] tag and cannot be used
outside of a [row]...[/row] container.
A common usage might be as follows:
(from the Standard demo's "etc/mail_reciept" file)
...
Quan Item No. Description Price Extension
---- ----------- ------------------------------- -------------- ----------------
[item-list][row 82]
[column width=5 gutter=1 align=right] [item-quantity] [/column]
[column width=12 gutter=1] [item-code] [/column]
[column width=32 gutter=1 align=left wrap=1]
[item-description]
[if-modifier size]SIZE-->[item-modifier size][/if-modifier][if-modifier color] COLOR-->[item-modifier color][/if-modifier]
[/column]
[column width=15 gutter=1 align=r] [item-price] [/column]
[column width=17 gutter=1 align=r] [item-subtotal] [/column]
[/row]
...
[/item-list]
|
Parameters
width
The column width, including the gutter.
This must be supplied, as there is no default.
A shorthand method is to just supply the number as the first parameter,
as in [col 20].
gutter
The number of spaces used to separate this column from the next.
align
Determines whether text is aligned to the left (the default), the right,
or in a way that might display an HTML text input field correctly.
Valid values are "L", "R" and "I".
spacing
The line spacing used for wrapped text.
The default is 1, for single-spaced text.
wrap
Determines whether text that is greater in length than the column width
will be wrapped to the next line.
The default is "Yes".
See also