Wiki

Clone wiki

adf-builder-java / node-tableHeader

Node: tableHeader

Description

A header cell within a tableRow, which acts as a container for the information within the table. A tableHeader behaves identically to a tableCell in every respect, but is visually marked (generally with a different background color and/or font weight) to distinguish it from an ordinary table cell.

Example

See table.

Compatibility

Products

Confluence Jira

Usage

Marks

❌ N/A

Structure

  • type - tableHeader
  • attrs?
    • colspan? - number
    • rowspan? - number
    • colwidth? - array(number) 1
    • background? - string 2
  • content - array(TableCellContent...) (at least 1)

  1. If colwidth is specified, then it must have exactly the same number of entries as the colspan. If no colspan is specified, then it is taken to be 1. The value 0 is permitted to indicate that a column width is flexible, but at least one of the values in the array must be positive. For example, if colspan is 3, then colwidth could be [120, 0, 120] to indicate that the first and last columns are 120 pixels wide and the middle column should automatically resize to fit its content. 

  2. The recommended values for the background color are a short hex (#333), long hex (#E6FCFF), or HTML color name. However, this is not enforced, and in practice other values may be encountered in this field, especially if the table content was pasted into the editor from an external source. This includes the CSS rgb(...) function syntax and other such values, so this library does not validate this value. 

Updated