I am using Vuejs 2 and the v-tooltip npm package. I would like to display the v-tooltip only when a button is disabled. When it is not disabled, I don't want to display the v-tooltip at all.
<button
v-tooltip="message"
:disabled="true">
CLICK ME!
</button>
Let say you have a variable
disabled
in your state, it can be a condition as wella > b
, then you can conditionally render the buttons.Or you can even try this
maybe it will work