0

I need to template primeNG p-datatable header. I simply want to add a title to the header. I'm trying this:

<p-column field="field" header="header" [style]="{'width':'100px'}">
     <ng-template ptemplate="header">
          <span title="header"></span>
     </ng-template>
     <ng-template let-cell="rowData" pTemplate="body">
          <span title="cell.field">{{cell.field}}</span>
     </ng-template>
<p-column>

It works only for cell content. Any ideas?

EDIT: header text is showed. I think it taken from p-column header. When I hover over this text, span title doesn't work.

bigskull
  • 541
  • 2
  • 18
  • 28

1 Answers1

0

Not sure it will do what you expect but if you want to make the tooltip visible, replace

<span title="header"></span>

with

<div title="header">&nbsp;</div>
Antikhippe
  • 6,316
  • 2
  • 28
  • 43