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?
To change the width of your tooltip, you will have to touch the ui-tooltip-text which is a child of a container class you were trying to change. Make sure to apply that in styles. css at root of your project. If you want to apply it from your component, you will have to set ViewEncapsulation.
use [tooltipDisabled]="flag"
instead
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With