Sub-component inside v-popup and v-tooltip
See original GitHub issueHi @KoRiGaN,
Is it possible to use sub-component inside the content of v-popup and v-tooltip, instead of pure HTML string inside the content
property?
So we can do this kind of stuff:
<div id="app">
<v-map :zoom="zoom" :center="center">
<v-tilelayer :url="url" :attribution="attribution"></v-tilelayer>
<v-marker :lat-lng="marker">
<v-popup>
<button @click='counter += 1'>{{ some_content }}</button>
</v-popup>
</v-marker>
</v-map>
</div>
Cheers, Tortue Torche
Issue Analytics
- State:
- Created 6 years ago
- Reactions:2
- Comments:9 (3 by maintainers)
Top Results From Across the Web
Sub-component inside v-popup and v-tooltip #35 - GitHub
Hi @KoRiGaN, Is it possible to use sub-component inside the content of v-popup and v-tooltip, instead of pure HTML string inside the content ......
Read more >Controlling tooltips & pop-up menus with components in React
1. Open the tooltip. react tooltip popup menu list element. Connecting the tooltip component to an element.
Read more >Using v-tooltip on custom (non native) component
I have tried wrapping <custom-component /> in a div but it isn't working. Below is sample code to get the gist. <v-tooltip> <template...
Read more >Tooltip | Components - BootstrapVue
Easily add tooltips to elements or components via the component or v-b-tooltip directive.
Read more >Tooltip component — Vuetify
The v-tooltip component is useful for conveying information when a user hovers over an element. You can also programmatically control the ...
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
@tortuetorche I was trying to do the same thing but couldn’t quite figure it out. I ended up creating a new component with properties. As you need to build up a string to pass to
bindPopup
. It might not be the best method but it did work.Nice feature.