is it possible to add a click event handler to the tooltip options ?
See original GitHub issuei know that we already have the option of custom html, but consider this example.
- we have a loop that will render a table with columns “keys, values, ops”
- now for each cell of the keys column, we show a tooltip with some info
- but we also want to allow the user to interact with that tooltip so we could do something like
v-tippy="{ position : 'right', arrow: true, interactive: true, clickEvent: doSomething(data) }"
and inside the doSomething()
doSomething(data) {
// data is basicly the 'data-original-title' tippy has auto-resolved for us
}
Issue Analytics
- State:
- Created 6 years ago
- Comments:30 (14 by maintainers)
Top Results From Across the Web
Using click event handler prevents tooltips from displaying on ...
If you just specify click event then the chart will not respond to all other events like mousemove events. Try this: events: ['click',...
Read more >Controlling tooltips & pop-up menus with components in React
1. Open the tooltip ; isOpen and ; style states to show/hide and position the tooltip component respectively. Also, it is required to...
Read more >toggling series by clicking on tooltip label - Highcharts
You can make an addEventListener on the element of rendered label by Highcharts SVG Renderer and fire desired function on click event.
Read more >Tooltips · Bootstrap v5.0
Elements with the disabled attribute aren't interactive, meaning users cannot focus, hover, or click them to trigger a tooltip (or popover). As a...
Read more >Event and Action - Concepts - Handbook - Apache ECharts
Users can trigger corresponding events by their operation. The developer can handle the callback function by listening to these events, such as jump...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

@ctf0 sorry for the delay, please check the code bellow
1- in
content.vueedittr: usedata-htmland store the currenttrkey value.2- add to
content.vue: reusable html template for tippy3- add this method to
content.vue4- add this function to
content.vue5- add data key/value to
ops.jsanother way incase someone was after the same thing but easier than the docs