I am using a table within an analytical application within SAP Analytic Cloud.
At the moment I am facing an issue: I want to color only the totals rows with a specific color. I already had a look at the supported css class names (.my-table-theme .sap-custom-table-dimension-member-cell and .my-table-theme .sap-custom-table-data-cell).
For my use case I want to color table-dimension-member-cell and table-data-cell where the total sum is listed. The table is dynamic which means the user can add and remove columns and rows.
Please have a look at the attached picture:

Is it possible to mix javascript with css? I thought about a loop which is examining if in the table cell “totals” is found and if so the cell and all the other cells after that should be colored. That it means that dimension-member-cell and table-data-cell will be only active if the condition is met.
I am grateful about every hint.
Thank you.