juareznasato / vuetify-money

vuetify-money
45 stars 23 forks source link

Possibility to react to events from `v-text-field` #23

Open giordanorn opened 3 years ago

giordanorn commented 3 years ago

It would be awesome if we could react to events from v-text-field component. I suggest something like the properties prop in vuetify-money. Another possibility is giving a ref attribute to the v-text-field so we can set up event listeners manually.

If this is a desired enhancement, I may try to implement as soon I have some free time.

Best regards.

giordanorn commented 3 years ago

Just found a proper solution on:

https://stackoverflow.com/questions/55199485/how-listen-to-all-events-from-one-component-in-vuejs

mdrews21 commented 3 years ago

Could you please make an example of how you implement this with vuetify-money-component? I'm looking for a way to react to the "update"-event of the v-text-field component. Kind regard

This doesn't seem to work: `<v-chip small class="mr-2" @update="updateModel(amount, variant, 'quantity', item)"

<vuetify-money v-model="item" :options="options" :properties="properties" :rules="amountRules" v-on="$listeners" /> `