Мне нужно выкачать событие разрыва страницы на <tr>
в p-dataTable. Было бы здорово, если бы я мог контролировать, в каком ряду я могу это сделать.
Я получаю свой результат на обычной таблице, используя:
@media print {
tr {
display: block;
width: 100%;
page-break-after: always;
page-break-inside: avoid;
page-break-before: avoid;
}
}
<table style="width: 100%;">
<thead>
<tr>
<th>Head 1</th>
<th>Head 2</th>
<th>Head 3</th>
</tr>
</thead>
<tbody>
<tr>
<td>Row 1 Cell 1</td>
<td>Row 1 Cell 2</td>
<td>Row 1 Cell 3</td>
</tr>
<tr>
<td>Row 2 Cell 1</td>
<td>Row 2 Cell 2</td>
<td>Row 2 Cell 3</td>
</tr>
<tr>
<td>Row 3 Cell 1</td>
<td>Row 3 Cell 2</td>
<td>Row 3 Cell 3</td>
</tr>
</tbody>
</table>
Как получить этот результат в p-dataTable?
UPDATE
Этот код ниже позволяет вывести разрыв страницы
::ng-deep tr {
display: block !important;
width: 100%;
page-break-after: always !important;
page-break-inside: avoid !important;
page-break-before: avoid !important;
}
Вопрос в том, как заставить его в избранном <tr>