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

beforeShown() method => check if Tippy can be show or not ? #23

Closed
ALPIXELMaiki opened this issue Apr 14, 2017 · 6 comments
Closed

beforeShown() method => check if Tippy can be show or not ? #23

ALPIXELMaiki opened this issue Apr 14, 2017 · 6 comments

Comments

@ALPIXELMaiki
Copy link

Hi !

It would be great if there were a way to check if, into the beforeShown() method (or another one ?), the tippy tooltip can be shown or not ?

Exemple :

beforeshown(state) {
    if(state) {
        tippyInstance.show()
    } else {
        tippyInstance.hide()
    }
}

Regards, 👍

@atomiks
Copy link
Owner

atomiks commented Apr 14, 2017

Can you give an example of what this would be used for?

@ALPIXELMaiki
Copy link
Author

Actually, There is no way to cancel tooltips appearances if needed.

For exemple : un my VueJS SPA, tippy tooltips are used to help users by showing shorts messages. If I disabled tooltips helps in my configuration panel, i can't cancel tooltips appearances. That's why i search how can i cancel tippy appearances in a method.

Thanls

@atomiks
Copy link
Owner

atomiks commented Apr 15, 2017

Can you check this comment and see if that will be appropriate for you? Basically you can control whether to show the tooltip or not if you define a wait callback.

@atomiks
Copy link
Owner

atomiks commented Apr 16, 2017

In v0.4.0, there's a new wait() callback and update() method which might solve your issues, give them a try? (Check the docs for info)

@ALPIXELMaiki
Copy link
Author

I made a workaround into my code. So you can close this issue

@atomiks atomiks closed this as completed Apr 16, 2017
@Jasminou
Copy link

@ALPIXELMaiki could you please share your workaround ?

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

3 participants