vue-search-select icon indicating copy to clipboard operation
vue-search-select copied to clipboard

how to get change value

Open kmihiranga opened this issue 5 years ago • 2 comments

i want to get every time @change value into a console. how i get?

kmihiranga avatar Dec 28 '19 05:12 kmihiranga

I have this <template> <model-select :options="options" v-model="changeEvent" placeholder="select item"> </model-select> </template>

and ` import {ModelSelect} from 'vue-search-select'

export default {
    components: {
        ModelSelect
    },
    data() {
        return {
            value: '',
            changeEvent: this.value,
            options: []
        }
    },
    watch: {
        changeEvent(val) {
            // eslint-disable-next-line no-console
            console.log(val);
        }
    }
}

`

BetoHu avatar Feb 05 '20 20:02 BetoHu

Use @input="myChange"

meSmashsta avatar Jan 17 '21 13:01 meSmashsta

I added the documentation here #183 , you can use @searchchange event

you can take a look at usage example here btw https://github.com/moreta/vue-search-select/blob/main/docs/src/views/ModelAjax.vue

ahmad-reza619 avatar Apr 11 '23 06:04 ahmad-reza619