I work on angular 7 app I need to apply red color font to specific column
but i dont know how to do that ?
I show data dynamically meaning no fixed column or data and code below working without any issue
my main thing i need is if columnname='onlineurl' make font color to red
my code as below datasource on ts as below :
- this._displayreport.GetReportDetailsPaging(this.searchData).subscribe((data: any[]) => {
- this.reportdetailslist = data;
- this.headerCols = Object.keys(data[0]);
- data.forEach((item) =>{
- let values = Object.keys(item).map((key)=> item[key]).filter(item =>item != data[0].totalCount)
- this.contentBody.push(values);
- });
- });
to get header without data i do as below :
- "width: max-content">
"let coln of headerCols"> "coln != 'totalCount'" >- {{coln}}
to get content data without header i do
"let rep of contentBody"> "let r1 of rep">{{r1}}

Laxmidhar SahooPosted May 21, 2020, 6:12 AM
ahmed elbarbaryPosted May 20, 2020, 12:44 AM
Laxmidhar SahooPosted May 20, 2020, 12:29 AM