<row> (in a table)
<row> is a Sectional
component that functions as a container element for the individual <cell> elements of a <tabular> or a <spreadsheet>.
<row> is also accepted inside a <matrix>, where it
defines a row of math values; see <row> (in a matrix) for
that flavor.
Attributes and Properties
Attributes for <row>
Other (10)
text. Default value: none. Border style for the bottom edge of this row.
textList. Symbols treated as function names when parsing.
text. Default value: left. Default horizontal alignment for cells in this row.
boolean. Default value: false. Whether this row is a header row.
text. Default value: none. Border style for the left edge of this row.
parseScientificNotationboolean. Whether to parse expressions like 1e3 as scientific notation.
reference. References whose names should be treated as function symbols when parsing.
rowNumtext. Row number where this row is placed (1-based).
boolean. Whether multi-character symbols are split into a product of variables.
text. Default value: middle. Default vertical alignment for cells in this row.
Common to all components (9)
copyreference. Create an independent copy of another component by reference. Enter a references a $name.
disabledboolean. Default value: false. Whether this component is disabled and cannot be interacted with.
extendreference. Extend another component by reference, inheriting its children and attributes. Enter a reference as $name.
fixedboolean. Default value: false. Whether this component's value is fixed and cannot be modified.
fixLocationboolean. Default value: false. Whether this component's location is fixed (preventing it from being moved while still allowing other modifications).
hideboolean. Default value: false. Whether to hide this component from the rendered output.
isResponseboolean. Default value: false. Whether this component is treated as a response for the purposes of assessment.
nametext. The name used to reference this component from elsewhere in the document.
styleNumberinteger. Default value: 1. The style number used to select this component's visual styling from the available style definitions.
Properties for <row name="r">
Other (10)
$r.bottomtext. Border style for the bottom edge of the row.
$r.disabledboolean. Whether this component is disabled and cannot be interacted with.
$r.fixedboolean. Whether this component's value is fixed and cannot be modified.
$r.fixLocationboolean. Whether this component's location is fixed (preventing it from being moved while still allowing other modifications).
$r.haligntext. Default horizontal alignment for cells in this row.
$r.headerboolean. Whether this row is a header row.
$r.lefttext. Border style for the left edge of the row.
$r.rowNumtext. Row number where this row is placed (1-based).
$r.valigntext. Default vertical alignment for cells in this row.
Common to all components (4)
$r.doenetMLtext. The DoenetML source code that produced this component.
$r.hideboolean. Whether to hide this component from the rendered output.
$r.isResponseboolean. Whether this component is treated as a response for the purposes of assessment.
$r.styleNumberinteger. The style number used to select this component's visual styling from the available style definitions.
Examples
Example: a <row> inside a <tabular>
The basic, unformatted structure of a <table> is illustrated. Individual rows are contained
within a <tabular>, and individual cells are contained within a <row>.
Example: a <row> inside a <spreadsheet>
<row> also populates a <spreadsheet> row by row.
Compare with <column>, which populates a spreadsheet
column by column.
Attribute Examples
Attribute Example: header
The header attribute defines a <row> with header styling.
Attribute Example: halign
The halign attribute defines the horizontal alignment of content within
each <cell> for the given <row>. The available options
are left (default), center, and right.
Attribute Example: valign
The valign attribute defines the vertical alignment of content within
each <cell> for the given <row>. The available options
are top, center (default), and bottom.
Attribute Example: left
The left attribute defines the weight for the left border element of content
within each <cell> for the given <row>. The available options
are none (default), minor, medium, and major.
Note that the left attribute can also be specified in the <tabular>, which
then applies to the entire table. If specified in both locations, the specification
within the individual <row> takes precedence.
Attribute Example: bottom
The bottom attribute defines the weight for the bottom border element of
content within each <cell> for the given <row>. The available
options are none (default), minor, medium, and major.
Note that the bottom attribute can also be specified in the <tabular>, which
then applies to the entire table. If specified in both locations, the
specification within the individual <row> takes precedence.