我有:
<p-dataTable [rows]="25" [paginator]="true" [pageLinks]="3" [rowsPerPageOptions]="[25,50,100]" [value]="searchFirm">
<p-column field="street" header="Address" [sortable]="true" [style]="{'overflow': 'hidden'}" [filter]="true" filterMatchMode="contains"></p-column>
我的对象:
export interface Firm {
postal_code: string;
street: string;
voivodeship: string;
acronym: string;
city: string;
name: string;
id: string;
}
现在我在表(field="street")中只有街道,但我想成为街道、城市和邮政编码。我尝试使用 ng-template 但没有结果。请帮忙。