Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable/hide tooltip #30

Open
ghost opened this issue Oct 28, 2020 · 2 comments
Open

Disable/hide tooltip #30

ghost opened this issue Oct 28, 2020 · 2 comments

Comments

@ghost
Copy link

ghost commented Oct 28, 2020

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
Copy link
Contributor

JumBay commented Oct 28, 2020

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
Copy link
Author

ghost commented Oct 28, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant