OPF
DocsObject referenceView source

Styled Table Cell

A cell with explicit visual style or merged geometry. Its position remains its array column index; use null placeholders for every covered grid position.

Metadata

Definition
#/$defs/StyledTableCell
Type
object
Source
spec/schemas/opf.schema.json

Field index

FieldTypeReq.Description
valueref:TableCellValueyesEditable cell content; styling and spans do not change its scalar type or rich runs.
styleref:TableCellStyle—
colSpaninteger—Number of grid columns covered, starting at this cell. Covered positions must contain null. Default 1.
rowSpaninteger—Number of grid rows covered, starting at this cell. Covered positions must contain null. Header cells cannot span into body rows. Default 1.
formatref:NumberFormat—Number format. On a body cell it formats that cell's number value (and wins over the column's format); on a header cell (in 'columns') it is the column's format, the same as a DataColumn header. Strings, booleans, null and rich runs display unchanged.

value

typeref:TableCellValuerequiredyesdefault—

Editable cell content; styling and spans do not change its scalar type or rich runs.

value.json
{
  "value": "value-value"
}

style

typeref:TableCellStylerequirednodefault—

style.json
{
  "style": "style-value"
}

colSpan

typeintegerrequirednodefault—

Number of grid columns covered, starting at this cell. Covered positions must contain null. Default 1.

colSpan.json
{
  "colSpan": 1
}

rowSpan

typeintegerrequirednodefault—

Number of grid rows covered, starting at this cell. Covered positions must contain null. Header cells cannot span into body rows. Default 1.

rowSpan.json
{
  "rowSpan": 1
}

format

typeref:NumberFormatrequirednodefault—

Number format. On a body cell it formats that cell's number value (and wins over the column's format); on a header cell (in 'columns') it is the column's format, the same as a DataColumn header. Strings, booleans, null and rich runs display unchanged.

format.json
{
  "format": "format-value"
}