We are using the DataTable component with styled rows. We make use of the rowClass property to adjust the bacjground color of the rows based on certain conditions.
We also use the Expanded Rows functionality and would like to extend the same background color to the Expanded Rows as the main rows. We know about the p-datatable-row-expansion style, but this appies to all expanded rows, and not conditionally.
How can we apply the same styles we use via the rowClass property to the expanded rows?