question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

how to toggle tippy on condition

See original GitHub issue

maybe something like v-tippy="{arrow: true, toggle: checkForData()}" ?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:42 (21 by maintainers)

github_iconTop GitHub Comments

3reactions
KABBOUCHIcommented, Aug 8, 2020

@doutatsu return a condition for the onShow function or @show event

image

<button @show="() => false" content="Tooltip" v-tippy>Button</button>
<button>
	Button
	<tippy content="Tooltip" @hide="() => false"></tippy>
</button>
2reactions
twickstromcommented, Mar 26, 2019

I’m late to the party, but for what it’s worth by simply conditionally providing the title attribute acheives the desired outcome

<span v-tippy :title="condition ? titleVar : null" />

-or-

<span v-tippy :title="titleVar || null" />

in the second option just make sure titleVar is ‘truthy’

Read more comments on GitHub >

github_iconTop Results From Across the Web

All Props | Tippy.js - GitHub Pages
Prop Default Description plugins Specify plugins to use. See Plugins for details. role "tooltip" Specifies the role attribute on the tippy element. zIndex 9999 Determines the...
Read more >
All Props - VueTippy
Determines if the tippy hides upon clicking the reference or outside of the tippy. The behavior can depend upon the trigger events used....
Read more >
How to catch tippy js template event - javascript - Stack Overflow
i find the solution in a sample at codepen.io/imnofox/pen/NvWjzK. Using "change" eventListener for select event out of tippy js scope as:
Read more >
Add Tooltips To Any Element Using Tippy.JS - YouTube
Your browser can't play this video. Learn more. Switch camera.
Read more >
How To Easily Create Tooltips In Oxygen With Tippy.js
In this video, see how to easily implement tippy.js in Oxygen so that you can show a tooltip when ... Simple Password Protection...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found