[FIXED] How to add conditional tooltip using primeng?

Issue

I am trying to add a conditional tooltip over a button. Using primeng tooltip component:

<div pTooltip="Please upload" style="display:inline-block;" tooltipPosition="top" 
   tooltipDisabled = "flag">
     <button class="btn btn-primary btn-xs"><i class="fa fa-check" 
     aria-hidden="true"></i></button>
</div>

It is not working.

However, tooltip without “tooltipDisabled” is working fine.

Can someone please help me?

Solution

use [tooltipDisabled]="flag" instead

Answered By – BillF

Answer Checked By – Pedro (Easybugfix Volunteer)

Leave a Reply

(*) Required, Your email will not be published