12-18-2018 04:59 AM
I am using adf data table to render data .there is any way to add css based on even or odd row
12-20-2018 01:02 PM
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.
04-29-2021 03:40 AM
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>
Explore our Alfresco products with the links below. Use labels to filter content by product module.