Add a table header. Returns a Row Object.
Example:
const table = doc.table({
widths: [200, 200],
borderWidth: 1,
})
const header = table.header()
header.cell('Header Left')
header.cell('Header Right')
Starts a table row. Returns a Row Object.
Options:
- minHeight (default: 0) - the minimum height of the row
Example:
const table = doc.table({
widths: [200, 200],
borderWidth: 1,
})
const row = table.row()
row.cell('Cell Left')
row.cell('Cell Right')