Can I force somehow the table header repeating on each page in pdfMake, when I have a big table, that only fits on multiple pages.
Make sure that your long table is actually a single table. If it is not, then the header row won't repeat because the table doesn't really extend beyond a single page. The easiest way to determine if you are working with a single table vs. multiple tables is to click somewhere within the table.
Header row repetition means that the header row(s) of a table will repeat at the top of each page on which the table spans.
By setting the headerRows
, it will repeat automatically.
Like
table: {
headerRows: 1,
body: [
...
]
}
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