I am using adf data table to render data .there is any way to add css based on even or odd row
Hi my suggestion, in general, is to give a look to the ADF repository documentation:
alfresco-ng2-components/docs at development · Alfresco/alfresco-ng2-components · GitHub
This topic in general is covered here:
search for the key word css in the page that I linked you above.
I know this is already years too late.
But I wa wondering if its possible to apply a style to a row based on the data included in that row.
I know that ng-template allows us to access the data in that row but only in a cell level. Is it possible to do it in a row level?
<data-column> <ng-template let-entry="$implicit"></ng-template> </data-column>
Something like
<ng-template let-entry="$implicit"> <data-row [ngClass]="entry.row.getValue('name')==='value'?red-background:green-background"> <data-columns> ..... </data-columns> </data-row> </ng-template>
Discussions, help and advice about the Alfresco Development Framework.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.