I would like to highlight background of some td elements. I know that I can use templates, but in this case, I have to return element. And for example when I will return div with some background, it doesn't looks good, because td element has its own padding.
So we would have smth like:
Is it possible to add some class to td element depending on row and column data? I don't want to change td styling.
Code: Select all
<td style="padding: 5px"> <div style="backgroundColor: red"></div> </td>