Skip to content
Advertisement

Vuetify tooltip refresh/rerender on hover

I have a vuetify tooltip component. In the tooltip I have a {{date | moment}}. I get a static a few seconds ago.

I want every time I hover over the button, to refresh the button tooltip to the current elapsed time (10 minutes ago for example). I can’t figure out how to rerender the tooltip on hover with the updated filter.

JavaScript

Advertisement

Answer

If I understood correctly about what you are trying to achieve, this idea might help you (below is the code pen link):

simulated elapsed time on button hover

JavaScript
JavaScript

tooltip text is bound to a variable in the data object, whenever the user hover over the button, a method is called which updates the variable in the data object

User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement