Hi there
I’m working on a transaction table using the default dynamic table setup in PReS Connect 2022.
I tried adding break-after: avoid; and page-break-after: avoid; to <th> and <thead> because I want to prevent a page break immediately after the table header.
At the moment, the PDF sometimes shows the header and footer appear only at the bottom of the page and header content footer at the second page.
Is there a way to properly control page breaks for table headers in PReS Connect?
Also, can we control whether the table header and footer repeat on every page?
Any help would be appreciated.
Thanks!
<table id="tableBal0" class="Bal0" data-column-resize="" data-detail="" data-hide-when-empty="" style="width: 100%;" data-expander="2019">
<thead>
<tr>
<th style="text-align: left; width: 23.56%;">Date </th>
<th style="text-align: left; width: 26.53%;">Transaction Details </th>
<th style="text-align: left; width: 11.25%;">Units </th>
<th style="text-align: left; width: 16.03%;">Price ($) </th>
<th style="text-align: left; width: 20.88%;">Total Value ($) </th>
</tr>
</thead>
<tbody>
<tr data-repeat="detail">
<td style="text-align: left;" data-field="transactionDate">@transactionDate@</td>
<td style="text-align: left;" data-field="transactionDetails">@transactionDetails@</td>
<td style="text-align: left;" data-field="units">@units@</td>
<td style="text-align: left;" data-field="unitPrice">@unitPrice@</td>
<td style="text-align: left;" data-field="totalValue">@totalValue@</td>
</tr>
</tbody>
<tfoot>
<tr>
<td colspan="5">
<p class="TC">
<br>
*TC apply
</p>
</td>
</tr>
</tfoot>
</table>
thead{
break-after: avoid;
page-break-after: avoid;
}
.th {
color: #fff;
padding: 8px;
break-after: avoid;
page-break-after: avoid;
}

