angular-generic-table icon indicating copy to clipboard operation
angular-generic-table copied to clipboard

How to use ngCLass for generic table ?

Open Syedgit opened this issue 8 years ago • 2 comments

I am trying to add ngClass so i can change color of the row based on value,does yuor library provide this feature so i can change row colors conditionally ?

<generic-table [gtClasses]="'table-hover'" #myCustomTable [gtSettings]="secondConfigObject.settings" [ngClass]="{isClassvisible === true}" [gtFields]="secondConfigObject.fields" [gtData]="secondConfigObject.data" (gtEvent)="trigger($event)" [gtOptions]="{ rowSelection:true}"></generic-table>

Syedgit avatar Jan 23 '18 19:01 Syedgit

https://github.com/hjalmers/angular-generic-table/issues/102#issuecomment-358384547

Please refer to this your issue should be resolved

sahilkatia avatar Jan 24 '18 17:01 sahilkatia

@Syedgit if you need conditional styling for the rows based on some value in your data take a look at this example.

hjalmers avatar Jan 25 '18 08:01 hjalmers