San

San

  • NA
  • 804
  • 324.9k

table headers display * required in primeng table

Jan 20 2020 5:56 PM
Please check the below code.
I want to disply * as a required field of table header in PrimeNg.
<ng-template pTemplate="header" let-columns>
<tr>
<th *ngFor="let col of columns" [pSortableColumn]="col.field">
{{col.header}}
<p-sortIcon [field]="col.field"></p-sortIcon>
</th>
</tr>
</ng-template>

Answers (6)