docx
    Preparing search index...

    Type Alias ITableRowOptions

    ITableRowOptions: { children: readonly TableCell[]; keepNext?: boolean } & ITableRowPropertiesOptions

    Options for creating a TableRow element.

    Type Declaration

    • Readonlychildren: readonly TableCell[]

      Array of TableCell elements that make up the row. A row with no cells isn't written, as Word can't open a document with one, so give it a cell to keep it, such as an empty one for a row of space.

    • Optional ReadonlykeepNext?: boolean

      Keeps the row on the same page as the next row (keep with next), by setting keepNext on each paragraph in its cells that doesn't set its own. That includes the cells docx adds below a cell merged down several rows (rowSpan), which have no paragraphs of yours to set it on. Word keeps a row with the next when the paragraphs of its first cell are kept with the next, so set it on every row of a group but the last to keep the group on one page.