I have an Angular2 app. There I am dynamically creating a table with rows/columns and inserting the data. I am using ellipses to truncate the data that is too long in any cell. Now, I would like to display a popover/popup when I hover on a cell data (that has text truncated with ellipsis) to display the full text. And, I want to make sure that this popover/popup is displayed only when I hover on a cell for which dats is truncated and not for others. How do I achieve this? the code to build the table is something like:
<tbody>
<tr *ngFor="let row of rows......">
<td *ngFor="let col of columns">
<span [popover]="popTemplate"
[innerHTML]="row[column.name]">
</span>
<template #popTemplate>
<div >
{{ row[column.name] }}
</div>
</template>
</td>
</tr>
</tbody>
Now, with this code, I always get a popover displayed when clicking on a cell. How do I make sure that popover is dipslayed only on clicking a cell for which the text got truncated with the usage of ellipses property in css?