<cell>
<cell> is a Sectional
component. It is the smallest element of a <tabular> block of text or
data inside a <table>.
Attributes and Properties
| Attribute | Type | Values |
|---|---|---|
bottom = "…" | text | |
colNum = "…" | text | |
colSpan = "…" | integer | |
halign = "…" | text | |
prefill = "…" | text | |
right = "…" | text | |
rowNum = "…" | text |
| Property | Type |
|---|---|
$c.bottom | text |
$c.colNum | text |
$c.colSpan | integer |
$c.disabled | boolean |
$c.fixed | boolean |
$c.fixLocation | boolean |
$c.halign | text |
$c.hidden | boolean |
$c.inHeader | boolean |
$c.math | math |
$c.number | number |
$c.prefill | text |
$c.right | text |
$c.rowNum | text |
$c.text | text |
Example: <cell> inside a <table>
Each <cell> component defines a single entry in the <table>.
Attribute Example: colSpan
The colSpan attribute allows a single <cell> to span across
multiple columns. This attribute can also be used across all rows to create
visually wider “columns” within a table.
Attribute Example: hAlign
The hAlign attribute governs the horizontal alignment of
content within the <cell>. The default horizontal alignment is left.
Attribute Example: bottom
The bottom attribute specifies a bounding line at the bottom of the <cell>.
Attribute Example: right
The right attribute specifies a bounding line at the right edge of the <cell>.
Attribute Example: prefill
The prefill attribute provides another way to specify content within the cell.
Property Example: Attributes as properties
All of the attributes available to the <cell> component can also be accessed as properties.
Property Example: inHeader
The inHeader property returns the boolean value corresponding to
whether the <cell> occurs within a header <row>.
Property Example: text
The text property returns the text value stored within the <cell>.
Property Example: math
The math property returns the math value stored within the <cell>.
Property Example: number
The number property returns the numerical value stored within the <cell>.