akveo / akveo/ng2-smart-table

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

Open
#1,273 0 comments 2 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
1.6k
Forks
867
PR merge metrics
No merged PRs in 30d

Description

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](https://user-images.githubusercontent.com/52453498/118704089-a9a2be00-b80e-11eb-8420-2ed4f377a4e6.png)

Thanks in advance

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.