Cell node for table content. Supports formatting, spans, and borders.
Created automatically by table 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 cell node'}"
HTML attributes for table cells
Attributes
Node attributes that can be set and retrieved:
Number of columns this cell spans
Number of rows this cell spans
colwidth
Array<number>
default:"[100]"
Column widths array in pixels
Cell background color configuration
Vertical content alignment (top, middle, bottom)
Cell border configuration
Types
CellBorder
Cell border configuration
CellBorders
Cell borders object
CellMargins
Cell margins configuration
CellBackground
Cell background configuration
Background color (hex without #)
Source Code