Can I use without using TypeScript lang ?
adamprocter opened this issue · comments
Adam Procter commented
I am using the options API syntax and .vue files in plain JavaScript not in typescript and would love to use this lightweight picker but I am unsure how to thus construct the method ? Thanks
Robert Soriano commented
<template>
<div id="app">
<VuemojiPicker @emojiClick="handleEmojiClick" />
</div>
</template>
<script>
import { VuemojiPicker } from 'vuemoji-picker'
export default {
components: {
VuemojiPicker
},
methods: {
handleEmojiClick(detail) { // detail contains the selected emoji }
}
};
</script>
Adam Procter commented
thank you