I've a problem with header template in a p-datatable. I want to add a span with a title to show on hover over the header text. I'm tryng this:
Code: Select all
<p-column field="field" header="header" [style]="{'width':'100px'}">
<ng-template ptemplate="header">
<span title="Some title text"></span>
</ng-template>
<ng-template let-cell="rowData" pTemplate="body">
<span title="cell.field">{{cell.field}}</span>
</ng-template>
<p-column>
Is there any error in code?
Thanks