Node - tableHeader

Purpose

The tableHeader node defines a cell within a table heading row.

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

Type

tableHeader is a child block node of the tableRow node.

Example

1
2
{
  "type": "tableHeader",
  "attrs": {},
  "content": [
    {
      "type": "paragraph",
      "content": [
        {
          "type": "text",
          "text": "Hello world header"
        }
      ]
    }
  ]
}

Fields

Content

content takes an array of one or more of these nodes:

Attributes

  • background defines the color of the cell background.
  • colspan defines the number of columns the cell spans.
  • colwidth defines the width of the column or, where the cell spans columns, the width of the columns it spans in pixels. The length of the array should be equal to the number of spanned columns. 0 is permitted as an array value if the column size is not fixed, for example, a cell merged across 3 columns where one unfixed column is surrounded by two fixed might be represented as `[120, 0, 120].
  • rowspan defines the number of rows a cell spans.

Rate this page: