Hi all,
Data table, how to apply a style change on selecting a row.
I can apply a style change to the entire table such as using ‘background’ but how to highlight a selected row.
Cheers
Paul
Hello, @Paul_HIllen
To customize the highlight color, you need:
- Go to Theme → Extensions
- Create a new extension
- Add the following CSS:
.bl-data-table .bl-data-table-row.Mui-selected {
background-color: yellow;
}
Just replace yellow with any color you’d like, for example #ffeb3b, green, rgb(255, 235, 59) . Any standard color format works perfectly.
Hope this helps. Feel free to reach out if you have any other questions.
Kind regards,
Karyna