joserick/v-money-spinner

Implement Events

Closed this issue · 8 comments

In base to vuejs-tips/v-money/issues/63,

Implement the events:

  • When the number changes
  • When the number fell to negative
  • When the number fell to positive
  • When the minimum or maximum allowed value is exceeded

Any progress on this?

Hi @chris-snader

An apology, I had forgotten this topic but between today and tomorrow, this should be ready.

Hi, I have same issue. Anyway this plugin is perfect, especially if this have a events like onchange.

I was able to use @change.native instead of @change, but it worked the same as @input which didn't quite work for me. The work around I'm using right now is @blur.native. It's not exactly what I want, but it works as I'm trying to save to the database when the money field changes, but I don't want to update the database until the field loses focus.

I was able to use @change.native instead of @change, but it worked the same as @input which didn't quite work for me. The work around I'm using right now is @blur.native. It's not exactly what I want, but it works as I'm trying to save to the database when the money field changes, but I don't want to update the database until the field loses focus.

I tried @blur, but doesn't work for me.

try @blur.native. That should work. Or at least it did for me. The onchange would still be nice to have though since I would love to only send the database change if the money field changed and the field then lost focus.

@change.native worked for me. Thanks, I'm just a beginner here.

It's ready @chris-snader @joleth08

Here are the events with some parameters: Events

If you have any problem or recommendation, do not hesitate to tell me