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
parseRowenforcesmaxRepeatonly when the caller passes it; theodsandodtfacades do not forward one (andtableTable.parseTablecallsparseRowwithout it), so default tolerance is unbounded. PassmaxRepeatwhen calling the module directly on untrusted input.