Angular2 PrimeNG Conditional row Formatting
问题 I have an Angular2 app using PrimeNG components. I am attempting to make it so that when a field is of a certain value, the row in a DataTable is coloured a particular colour. I have another field which contains a colour value to use for the row highlight but cannot work out how to get it to work. My Model is as follows (very simplified): export class RepackRequest{ AdhereToLeadTime: boolean; LeadTimeRemaining: string; constructor() { var today = new Date(); if(this.AdhereToLeadTime){ var