Semantic header cell with built-in styling.
Created via insertTable({ withHeaderRow: true })
or toggle commands. See Table extension.
OOXML Structure
<w:tc>
<w:tcPr>
<w:tcW w:w="2880" w:type="dxa"/>
<w:cnfStyle w:val="100000000000"/> <!-- Header cell styling -->
</w:tcPr>
<w:p>
<w:pPr>
<w:pStyle w:val="TableHeader"/> <!-- Header paragraph style -->
</w:pPr>
<w:r>
<w:rPr>
<w:b/> <!-- Bold by default -->
</w:rPr>
<w:t>Header text</w:t>
</w:r>
</w:p>
</w:tc>
Options
Configure the extension behavior:
htmlAttributes
Object
default:"{'aria-label':'Table head node'}"
HTML attributes for table headers
Attributes
Node attributes that can be set and retrieved:
Number of columns this header spans
Number of rows this header spans
Column widths array in pixels
Source Code