I've these cols:
this.cols = [
{ field: 'acronym', header: 'Acrònim', sortable: true },
{ field: 'name', header: 'Nom', sortable: true },
{ field: 'commonUserName', header: 'Credencial', sortable: true },
{ field: 'scope', header: 'Àmbit', sortable: true },
{ field: 'transversal', header: 'Transversal', sortable: true },
{ field: 'startDate', header: 'Data Inici', sortable: true },
{ field: 'suspendDate', header: 'Data Suspensió', sortable: true },
];
Html p-dataTable is:
<div style="margin-bottom: 1.54em" *ngIf="!apps.error">
<p-dataTable #appsTable [value]="apps.content"...>
<p-column *ngFor="let col of cols" [field]="col.field" [header]="col.header" [sortable]="col.sortable">
</p-column>
</p-dataTable>
</div>
And table looks like:
As you can see, values are S|N, I'd like to show "Yes" when value is "S" and "No" when value is "N".
Data is an array of:
export interface ApplicationUser {
acronym: string;
code: string;
commonUserName: string;
description: string;
name: string;
transversal: string;
}
Any ideas?

apps.content? Doesn't that determine data that will be displayed in each row? If so, I think you should be able to useng-templatewith aPipefor example, to convertSandNtoYesandNo- miselking