mardi 12 mars 2019

Call a method when courser is in text-area in vue js

i am new in vue js. i have a text-area for chatting. when courser is in the text area how can i call a method. here is my code:

<template>
<div class="composer">

<textarea v-model="Keijiban" @keydown.enter="send"  @click="selectContact(kokyaku1)" @keydown="selectContact(kokyaku1)" placeholder="ここにメッセージを入力してください。"></textarea>

</div>
</template>

this is my method

selectContact(kokyaku1) {
            this.$emit('readkorsi',kokyaku1);
        }

how can i call "selectContact(kokyaku1)" method when courser is in text-area



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2J5Mef0
via IFTTT

Aucun commentaire:

Enregistrer un commentaire