Tooltip on a grid column with a formatter
New DiscussionI have a column in my grid (Ignite UI Angular 9.1.24) which represents a time duration. The raw value is an integer in seconds, and I use a formatter to get the string representation based on our business rules:
<igx-column field="duration" header="Duration" [sortable]="true" [formatter]="durationFormatter"></igx-column>
If I add a template to the cell for a tooltip, however, it negates the formatter. This column definition produces the integer in both the cell and the tooltip:
<div #tooltipRef="tooltip" igxTooltip>…
<ng-container *ngIf="tooltipRef.context">
{{tooltipRef.context.value}}
</ng-container>
</div>
<igx-column field="duration" header="Duration" [sortable]="true" [formatter]="durationFormatter">
<ng-template igxCell let-cell="cell">
<span [igxTooltipTarget]="tooltipRef" (onTooltipShow)="tooltipRef.context=cell" hideDelay="50">
{{cell.value}}
</span>
</ng-template>
</igx-column>

Is there a way to bind the tooltip to the post-formatter value?