fritx / vue-at

At.js for Vue.
https://fritx.github.io/vue-at/
MIT License
529 stars 114 forks source link

Is there a way to handle a change? #49

Closed goldsteinr closed 6 years ago

goldsteinr commented 6 years ago

I would like to handle a change with a specific value for the user mentioned.

Example:

 <at-ta :members="members" name-key="email" @change="handleChante(s.item.email)" v-model="commentForm.comment">
    <template slot="item" slot-scope="s">
        <img :src="s.item.thumb">
        <span v-text="`${s.item.firstName} ${s.item.lastName}`"></span>
    </template>
    <textarea class="editor" rows="1" :disabled="getIsLoading" placeholder="Type here a message, question, information..."></textarea>
 </at-ta>

Is this possible?

goldsteinr commented 6 years ago

added in #50

fritx commented 6 years ago

@goldsteinr you mean you need access to the very member-item on the event @at?

Ashirogi-Muto commented 5 years ago

Is this feature available in the latest release? I am still getting just the name of the item selected.

fritx commented 5 years ago

@Ashirogi-Muto sorry that I removed @at memberObj in favor of @insert - https://github.com/fritx/vue-at/commit/06f0deff539a101f5111183fa833c24846817b51

@at events were always broken, need to be fixed