Parse/render <table:table-row>.

Module tableRow | Source packages/front/office/odf/src/table/row.js | Worker-safe yes

Model: { type: 'row', styleName?, repeated?, visibility?, cells: [...], _extras? }.

visibility is the row's table:visibility (visible | collapse | filter), kept as written; renderRow writes it back.

API

Method Description
parseRow(el, { maxRepeat? }) Converts <table:table-row> into the model. Optional maxRepeat caps table:number-rows-repeated and throws ParseError('odf/parse-error/limit', …) if exceeded.
renderRow(row) Builds the node. A row with no cell is written with one empty <table:table-cell> (the schema needs a cell in a row); the model passed in is not modified.

Notes

  • parseRow enforces maxRepeat only when the caller passes it; the ods and odt facades do not forward one (and tableTable.parseTable calls parseRow without it), so default tolerance is unbounded. Pass maxRepeat when calling the module directly on untrusted input.