I'm trying to set a background in my entire cell (or my entire row) according to my condition, but the background it placed only at my HTML element.
I already tried put some class at my trying to set the padding 0, I already tried put some div.
HTML
<p-column header="Motivo" [style]="{width: '100px', 'text-align': 'center'}">
<ng-template let-movimento="rowData" pTemplate="body">
<p [ngClass]="{'motivo-SemEfeito': movimento.motivoDesligamentoId == 2}">
{{ movimento.motivoDesligamento }}
</p>
</ng-template>
</p-column>
CSS
.motivo-SemEfeito {
text-decoration: line-through;
background: red;
}