> ## Documentation Index
> Fetch the complete documentation index at: https://docs.superdoc.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# TableRow extension

Container for cells and headers.

Managed via Table commands. See [Table extension](https://docs.superdoc.dev/extensions/table).

## OOXML Structure

```xml theme={null}
<w:tr>
  <w:trPr>
    <w:trHeight w:val="567" w:hRule="exact"/>  <!-- Optional fixed height -->
    <w:tblHeader/>                              <!-- If header row -->
  </w:trPr>
  <!-- Table cells go here -->
  <w:tc>...</w:tc>
  <w:tc>...</w:tc>
</w:tr>
```

## Options

Configure the extension behavior:

**htmlAttributes** `Object` (default: \{'aria-label':'Table row node'})

HTML attributes for table rows

## Attributes

Node attributes that can be set and retrieved:

**rowHeight** `number`

Fixed row height in pixels

**cantSplit** `boolean` (default: false)

Indicates row should not split across pages

## Types

### `CnfStyle`

**Properties**

**evenHBand** `boolean`

Specifies that the object has inherited the conditional properties applied to the even numbered horizontal bands of the parent object.

**evenVBand** `boolean`

Specifies that the object has inherited the conditional properties applied to the even numbered vertical bands of the parent object.

**firstColumn** `boolean`

Specifies that the object has inherited the conditional properties applied to the first column of the parent object.

**firstRow** `boolean`

Specifies that the object has inherited the conditional properties applied to the first row of the parent object.

**firstRowFirstColumn** `boolean`

Specifies that the object has inherited the conditional properties applied to the cell that is in the first row and first column of the parent object.

**firstRowLastColumn** `boolean`

Specifies that the object has inherited the conditional properties applied to the cell that is in the first row and last column of the parent object.

**lastColumn** `boolean`

Specifies that the object has inherited the conditional properties
applied to the last column of the parent object.

**lastRow** `boolean`

Specifies that the object has inherited the conditional properties
applied to the last row of the parent object.

**lastRowFirstColumn** `boolean`

Specifies that the object has inherited the conditional properties applied to the cell that is in the last row and first column of the parent object.

**lastRowLastColumn** `boolean`

Specifies that the object has inherited the conditional properties applied to the cell that is in the last row and last column of the parent object.

**oddHBand** `boolean`

Specifies that the object has inherited the conditional properties applied to the odd numbered horizontal bands of the parent object.

**oddVBand** `boolean`

Specifies that the object has inherited the conditional properties applied to the odd numbered vertical bands of the parent object.

### `TableRowProperties`

**Properties**

**cantSplit** `boolean`

Indicates that this row should not be split across pages when paginating/exporting.

**cnfStyle** `CnfStyle`

Specifies the set of conditional table style formatting properties which have been applied to this row

**divId** `string`

Specifies the HTML div information which is associated with this row.

**gridAfter** `number`

Specifies the number of grid columns to be that should be left empty after the last cell in this row.

**gridBefore** `number`

Specifies the number of grid columns that should be skipped before the first cell in this row.

**hidden** `boolean`

Specifies that the glyph representing the end character of current table row shall not be displayed in the current document.

**jc** `any | any | any | any | any`

Specifies the overall justification of the contents of this row.

**tblCellSpacing** `Object`

Specifies the amount of spacing that shall be applied between the cells in this row.

**tblCellSpacing.value** `number`

The size of the spacing in twenieths of a point (1/1440 of an inch).

**tblCellSpacing.type** `any | any | any | any`

The type of spacing.

**repeatHeader** `boolean`

Specifies that this row is to be repeated as a header row at the top of each page on which the table is displayed.

**rowHeight.rule** `any | any | any`

The rule for the row height.

**wAfter** `Object`

Specifies the preferred width for the total number of grid columns after this table row.

**wAfter.value** `number`

The width in twenieths of a point (1/1440 of an inch).

**wAfter.type** `any | any | any | any`

The type of width.

**wBefore** `Object`

Specifies the preferred width for the total number of grid columns before this table row.

**wBefore.value** `number`

The width in twenieths of a point (1/1440 of an inch).

**wBefore.type** `any | any | any | any`

The type of width.

## Source code

[View on GitHub →](https://github.com/superdoc/docx-editor/tree/main/packages/super-editor/src/editors/v1/extensions/table-row/table-row.js)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.