Is there a way to delay the removal of the tooltip on mouse out?
I am using it in a span:
<span [tooltip]="tolTemplate"></span>
<ng-template #tolTemplate>
<div [innerHtml]="helpText"></div>
</ng-template>
Is there a way to delay the removal of the tooltip on mouse out?
I am using it in a span:
<span [tooltip]="tolTemplate"></span>
<ng-template #tolTemplate>
<div [innerHtml]="helpText"></div>
</ng-template>
You can use input property tooltipFadeDuration (default value is 150ms) but it will work only with “manual” triggering of the tooltip:
<button
#tlt="bs-tooltip"
triggers=""
tooltipFadeDuration=500
(mouseenter)="tlt.show()"
(mouseleave)="tlt.hide()"
[tooltip]="tooltipText"> Button with tooltip
</button>
You can inspire here. It is my solution in Angular CLI.
app.component.html
app.component.ts
app.module.ts