Table with empty row
on this example you see, when the table breaks it leaves one empty row, that the same, as the first row on the next page.
Question, how can I delete this empty row, that it looks better.
Thank for help
Use this
table: {
dontBreakRows: true,
}
Full explanation, assuming a table that spans two pages (not necessarily due to its own height):
headerRows: 1
- Identifies the first 1 row as the header row(s). Identified header row(s) appear at the top of both the first and second page of the table.dontBreakRows: true
- A row cannot be split in half across pages. (in the pdfMake playground Tables example's Header section, the table is a header row and one tall content row, so the content row only appears on page 2). keepWithHeaderRows: true
(requires identified headerRows
) - If page 1 only has room for the header row(s) and no content rows, this will NOT show the header(s) on page 1, in favor of keeping them with any content rows, on page 2.If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With