akveo/ng2-smart-table

How to add custom icon/css dynamically in ng-smart-table

Midovsky opened this issue · 0 comments

Hello everyone,

In my ng-smart-table, I have an attribute called "active" which can be true or false.

I want to color the "power on/off " button in the custom actions depending on the active value.

If active == true : the power button is green
If active == false: the power button is red

smart table

Thanks in advance