Open Presentation

Search docs

Loading documentation…
    OpenPresentation/opf
    Browse docs
    On this page
    View source

    Table Row

    One body row of an inline table: an array of cells, or an object that adds an optional id. Position (the cell's index in 'cells' or in the array) is its column either way.

    Metadata

    Definition
    #/$defs/TableRow
    Form
    2 alternative forms (oneOf)
    Source
    spec/schemas/opf.schema.json

    Field index

    This definition uses the forms or value constraints below.

    oneOf 1 · array<ref:TableCell>

    Exact constraints for oneOf 1
    oneOf 1 schema
    {
      "type": "array",
      "items": {
        "$ref": "#/$defs/TableCell"
      }
    }

    oneOf 2 · object

    FieldTypeReq.DefaultDescription
    idstring——Optional stable identifier for this table row, unique among every slide, payload, overlay, item, bullet, event and table-row id in the document (one namespace). An opaque string: readers never parse it. Use it when another system must address the table row across edits (a comment anchor, an @id patch token, a merge). Edit, move and reorder keep it; a copy inside the document gets a new one. A document without ids is valid and is addressed by index.
    cellsarray<ref:TableCell>yes—The row's cells, aligned by index with 'columns' exactly like the array form.

    id

    typestringrequirednodefault—

    Optional stable identifier for this table row, unique among every slide, payload, overlay, item, bullet, event and table-row id in the document (one namespace). An opaque string: readers never parse it. Use it when another system must address the table row across edits (a comment anchor, an @id patch token, a merge). Edit, move and reorder keep it; a copy inside the document gets a new one. A document without ids is valid and is addressed by index.

    id.json
    {
      "id": "r-emea"
    }

    cells

    typearray<ref:TableCell>requiredyesdefault—

    The row's cells, aligned by index with 'columns' exactly like the array form.

    Named choices are not exhaustive. See the schema for other values and constraints.
    cells[] (oneOf 1) (oneOf 5)[] (oneOf 2).color (anyOf 2).color, cells[] (oneOf 2).style.fill, cells[] (oneOf 2).style.color, cells[] (oneOf 2).style.borders.top (anyOf 2).color · Named choices
    "accent1", "accent2", "accent3", "accent4", "accent5", "accent6", "dark1", "dark2", "light1", "light2", "hyperlink", "followedHyperlink", "primary", "secondary", "accent", "background", "surface", "surfaceAlt", "text", "textSecondary"
    cells[] (oneOf 2).style.align · Allowed values
    "start", "center", "end"
    cells[] (oneOf 2).style.anchor · Allowed values
    "top", "middle", "bottom"
    cells[] (oneOf 2).style.borders.top, cells[] (oneOf 2).style.borders.right, cells[] (oneOf 2).style.borders.bottom, cells[] (oneOf 2).style.borders.left · Named choices
    "none"
    cells[] (oneOf 2).style.borders.top (anyOf 2).dash · Allowed values
    "solid", "dash", "dot"
    Exact constraints for oneOf 2
    oneOf 2 schema
    {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "cells"
      ],
      "properties": {
        "id": {
          "type": "string",
          "minLength": 1,
          "description": "Optional stable identifier for this table row, unique among every slide, payload, overlay, item, bullet, event and table-row id in the document (one namespace). An opaque string: readers never parse it. Use it when another system must address the table row across edits (a comment anchor, an `@id` patch token, a merge). Edit, move and reorder keep it; a copy inside the document gets a new one. A document without ids is valid and is addressed by index.",
          "examples": [
            "r-emea",
            "total"
          ]
        },
        "cells": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/TableCell"
          },
          "description": "The row's cells, aligned by index with 'columns' exactly like the array form."
        }
      }
    }
    Complete definition constraints
    Schema constraints
    {
      "description": "One body row of an inline table: an array of cells, or an object that adds an optional id. Position (the cell's index in 'cells' or in the array) is its column either way.",
      "oneOf": [
        {
          "type": "array",
          "items": {
            "$ref": "#/$defs/TableCell"
          }
        },
        {
          "type": "object",
          "additionalProperties": false,
          "required": [
            "cells"
          ],
          "properties": {
            "id": {
              "type": "string",
              "minLength": 1,
              "description": "Optional stable identifier for this table row, unique among every slide, payload, overlay, item, bullet, event and table-row id in the document (one namespace). An opaque string: readers never parse it. Use it when another system must address the table row across edits (a comment anchor, an `@id` patch token, a merge). Edit, move and reorder keep it; a copy inside the document gets a new one. A document without ids is valid and is addressed by index.",
              "examples": [
                "r-emea",
                "total"
              ]
            },
            "cells": {
              "type": "array",
              "items": {
                "$ref": "#/$defs/TableCell"
              },
              "description": "The row's cells, aligned by index with 'columns' exactly like the array form."
            }
          }
        }
      ]
    }