WiziShop / ng-wizi-bulma

Bulma components for Angular
https://ng-wizi-bulma.firebaseapp.com
MIT License
98 stars 19 forks source link

Disable/hide tooltip #30

Open ghost opened 3 years ago

ghost commented 3 years ago

Hi, First: great library. Bulma + angular = best tag team :-D

Second: maybe I'm stupid but I can't find a way to disable/hide the tooltip programmatically. The only way I found is use both the hide class one for mobile and for other screen like this:

<button class="button is-primary has-tooltip-arrow has-tooltip-left" 
                    [ngClass]="{'has-tooltip-hidden-mobile has-tooltip-hidden-tablet' : disableTooltip }"
                    attr.data-tooltip="{{variableTooltip}}"
                    type="submit">
              Add
</button>

There is a better way?

JumBay commented 3 years ago

Hi, Thanks.

There is no attribute to hide or disable the tooltip, but we are open for PR 😉

The file that handles tooltip is here: https://github.com/WiziShop/ng-wizi-bulma/blob/master/projects/ng-wizi-bulma/src/lib/shared/directives/tooltip/tooltip.directive.ts

ghost commented 3 years ago

Ok :-) Maybe I will try my first PR for a project 👍