Hello, I am using Angular 14 and Kendo popover to show popup (tooltip) when hovering on the column headers of my Kendo grid.
The problem I am experiencing is that I cannot find a way to add a 1s delay to the animation.
Here is part of the code:
<kendo-popover #template [animation]="popoverAnimation" position="bottom">
<ng-template let-anchor kendoPopoverBodyTemplate>
<es-table-reactive-help-popover
[helpKey]="helpKeyMap.get(anchor.innerText)"
></es-table-reactive-help-popover>
</ng-template>
</kendo-popover>
<div
class="wrapper"
[popover]="template"
(mouseover)="toggleTooltip($event)"
(mouseleave)="hideTooltip()"
kendoPopoverContainer
showOn="hover"
>
<kendo-grid>
<kendo-grid-checkbox-column [width]="70" title="....">
....
</kendo-grid-checkbox-column>
<kendo-grid-column [width]="200" field="name" title="....">
</kendo-grid-column>
<kendo-grid-column [width]="200" field="code" title="....">
</kendo-grid-column
><kendo-grid-column
[width]="200"
field="warehouseName"
title="Customer warehouse"
>
</kendo-grid-column>
<kendo-grid-column
[sortable]="false"
[width]="200"
field="supplierEvents"
title="...."
>
<ng-template kendoGridCellTemplate let-entry>
<es-schedule-pills
[eventSummary]="entry.eventSummary"
[supplierName]="entry.name"
[warehouseName]="entry.warehouseName"
[supplierId]="entry.id"
></es-schedule-pills>
</ng-template>
</kendo-grid-column>
</kendo-grid>
</div>
- The kendo-popover component has an input for animation, which uses the interface PopupAnimation, but it does not support animation delay.
- I have tried adding a raw CSS animation through tag/class selectors but the popup shows and then the animation runs which seems buggy.
- I cannot attach an animation through the component template since the popup element is generated under the hood and I don't have direct access to it in the template.
Can you provide me some other solution?
Okay, I found a solution that is adding a class with animation to the popup element dynamically, with Renderer2 from Angular, after using the show() method of PopoverContainerDirective.
Still I'd like to know if you have better solutions.