{}OPF
DocsObject referenceEdit on GitHub

Table

Table content. Columns are optional; rows are the only required field.

Metadata

Definition

#/$defs/Table

Type

object

Source

spec/schemas/opf.schema.json

Fields

FieldTypeReqDescription
columnsarray<string>Optional column labels rendered above table rows.
rowsarray<array<ref:TableCell>>yesTwo-dimensional table row data; each row aligns by index with columns when columns are supplied.

columns

Type: array<string> · Optional · Default:

Optional column labels rendered above table rows.

columns.json
{
  "columns": [
    "Region",
    "Q3 Revenue",
    "Q4 Revenue",
    "YoY %"
  ]
}

rows

Type: array<array<ref:TableCell>> · Required · Default:

Two-dimensional table row data; each row aligns by index with columns when columns are supplied.

rows.json
{
  "rows": [
    [
      "North America",
      12.4,
      18.1,
      "46%"
    ],
    [
      "EMEA",
      8.2,
      11.5,
      "40%"
    ]
  ]
}