Hi, let say i want to show the emoji picker content on a modal, to make it compatible with my template, and i wan't to trigger it from a button, but i don't want this button near the emoji picker component. Something like this.
`
... Content Here .....
`
And them from the external button i want to simply show the modal. So i would like to have display: {x: 0, y:0, visible: true} allways Can't place it near emoji-picker because is wraped inside tricky html tags. I can't find a way of modify the slot scoped display property from parent
I had the same issue displaying emoji list from an external button ( from outside the component ), and this is how I solved it, I added ref="EmojiOpen" attribute to 'emoji-invoker' slot to became like this :
Hi, let say i want to show the emoji picker content on a modal, to make it compatible with my template, and i wan't to trigger it from a button, but i don't want this button near the emoji picker component. Something like this. `
Could you please provide some example on CodePen or in any other online editor? Any screenshots/drawn concepts would be welcome.
Hey @jpujol880807
I had the same issue displaying emoji list from an external button ( from outside the component ), and this is how I solved it, I added
ref="EmojiOpen"
attribute to 'emoji-invoker' slot to became like this :then added
@click="$refs.EmojiOpen.click()"
to my external buttonExample: https://codepen.io/n4ss1m/pen/KJJaMN I hope this will help you!
Thanks a lot!!!, that works. Sorry for late response, I'm closing it.
Great it has been resolved 👍