My goal is to dynamically change the colors of selected rows every time a button outside the table is clicked. I am currently utilizing the latest version of Angular.
While I am familiar with setting row colors using CSS, I am uncertain about how to manipulate the CSS class programmatically in TypeScript.
.ui-table .ui-table-tbody > tr:nth-child(1) {
background-color: #2DA449;
}
Is there a method to modify the CSS class in TypeScript in order to specify the child index and background color?