daniel-nagy / md-data-table

Material Design Data Table for Angular Material
MIT License
1.9k stars 520 forks source link

Text colour on individual cells #562

Open bhtw opened 7 years ago

bhtw commented 7 years ago

Hi

I am creating a table where data in some cells are compared. If they are equal, I want that cell text to be green, else red. How is it possible to set individual text colour on a cell?

Thanks

ielektronick commented 7 years ago

Hey. Does it answer your question? <td md-cell> <span ng-class="{ 'warning-text': item.num1 < item.num2 }" ng-bind="item.num3"></span> </td>