Rate this page:

Node - tableRow

Purpose

The tableRow node defines rows within a table and is a container for table heading and table cell nodes.

Note: only supported on web and desktop. Mobile rendering support for tables is not available.

Type

tableRow is a child block node of the table node.

Example

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{
  "type": "tableRow",
  "content": [
    {
      "type": "tableHeader",
      "attrs": {},
      "content": [
        {
          "type": "paragraph",
          "content": [
            {
              "type": "text",
              "text": "Heading one",
              "marks": [
                {
                  "type": "strong"
                }
              ]
            }
          ]
        }
      ]
    }
  ]
}

Fields

NameRequiredTypeValue
typestring"tableRow"
contentarrayAn array of nodes

Content

content takes an array of one or more tableHeader or tableCell nodes.

Rate this page: