-2

I'm using text-overflow:ellipsis for my cells to keep rows' height consistent and I want to be able to show full content using mouseover in p-dataTable PrimeNG.

Antikhippe
  • 6,316
  • 2
  • 28
  • 43
  • Please show a minimal, verifiable and complete example, as described [here](https://stackoverflow.com/help/mcve). – Chris311 Mar 01 '18 at 15:14

1 Answers1

0

You can use templating for your cells.

<p-column field="color" header="Color">
    <ng-template let-col let-data="rowData" pTemplate="body">
        <span title="{{data[col.field]}}">{{data[col.field]}}</span>
    </ng-template>
</p-column>

and use the Primeng tooltip component or just a title attribute on the span.

Jonathan Hamel
  • 1,393
  • 13
  • 18