ReadonlyrowsThe patches for each copy of the rows, by the name of the field they patch, such as name for {{items.name}}.
A field's patch can repeat rows of a table in the copy in turn, whose fields are then such as
{{items.parts.name}}. When those fields are in the copy's own row, rather than in a table in it, the row is
repeated for each part, with its item's fields, and an item without parts has no row
ReadonlytypeIndicates this patch repeats the rows of a table
Patch definition that repeats the rows of a table in the template, once for each row of data, so a table can be designed in Word and filled in with any number of rows.
The rows it repeats are those that hold its fields: placeholders made of the patch's key, a dot and the field's name, such as
{{items.name}}and{{items.price}}for the patchitems. Each copy's fields are patched with a row's patches, by their field's name, and the other rows of the table, such as its header, are kept as they are. Rows next to each other are repeated together, such as a row for an item and a row for its notes.A field that a row has no patch for is left empty. With no rows, the rows are removed, and so is a table left with none. The other patches are applied after the rows are repeated, so a placeholder of theirs in a repeated row, such as
{{currency}}, is patched in every copy.Example
Public Api