-
Hi there, Is it possible having a second trigger button inside the tooltip which closes the tippy on click?
Thanks for your help. |
Beta Was this translation helpful? Give feedback.
Answered by
KABBOUCHI
Dec 16, 2021
Replies: 1 comment 1 reply
-
vue-tippy v4: <tippy ref="myTippy" interactive >
<button @click="$refs && $refs.myTippy && $refs.tippy().hide()">
Close Tippy (x)
</button>
</tippy> vue-tippy v6: <tippy interactive :hideOnClick="false" >
<template #default>
<button>
Hi
</button>
</template>
<template #content="{ hide }">
<button @click="hide()" >
×
</button>
</template>
</tippy> <tippy interactive :hideOnClick="false" trigger="manual">
<template #default="{ show }">
<button @click="show">
Hi
</button>
</template>
<template #content="{ hide }">
<button @click="hide()" >
×
</button>
</template>
</tippy> |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
Figumari
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
vue-tippy v4:
vue-tippy v6: