Open rodrigodesp opened 6 years ago
I would like to put the properties
rows (?Array
Here is how I added table row color. I added an [ngClass]="{ 'selected': config.method(row) }" to the tr tag of the table body in ng2-table source files. I then added a method to my config object in my component where I used the ng-table component. This method tested the column that contained the value I wanted to test and returned true when the specific value was there.
And bing, bang, boom, the table had colored rows when the correct value was in the column.
I want to change the color of the line when the column contains a specific value, how do make it
ex.: Where Salary > 100.000 I want to put the green color to row