<cellBlock>
<cellBlock> is a container for grouping
<cell>, <row>, <column>,
or other <cellBlock> children inside a
<spreadsheet>, with an optional starting row and column.
It lets you populate a rectangular block of cells without naming every cell’s
location individually — the cells inside the block fill in relative to the
block’s origin.
Attributes and Properties
Attributes for <cellBlock>
Other (2)
colNumtext. Column number where this block starts (1-based; can be a letter or number).
rowNumtext. Row number where this block starts (1-based; can be a letter or number).
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 <cellBlock name="c">
Other (6)
$c.colNumtext. Column number where this block starts (1-based; can be a letter or number).
$c.disabledboolean. Whether this component is disabled and cannot be interacted with.
$c.fixedboolean. Whether this component's value is fixed and cannot be modified.
$c.fixLocationboolean. Whether this component's location is fixed (preventing it from being moved while still allowing other modifications).
$c.rowNumtext. Row number where this block starts (1-based; can be a letter or number).
Common to all components (4)
$c.doenetMLtext. The DoenetML source code that produced this component.
$c.hideboolean. Whether to hide this component from the rendered output.
$c.isResponseboolean. Whether this component is treated as a response for the purposes of assessment.
$c.styleNumberinteger. The style number used to select this component's visual styling from the available style definitions.
Examples
Example: A block of cells anchored at row 2, column B
The block’s rowNum and colNum attributes place the top-left corner of the
block at row 2, column B. Cells inside fill the block relative to that
starting point.
Example: Multiple <cellBlock>s in one spreadsheet
Two <cellBlock> elements place data tables side-by-side in the same
<spreadsheet>. Each block sets its own starting row and column.