-
Notifications
You must be signed in to change notification settings - Fork 256
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Placeholder option? #54
Comments
+1, would love to know this as well. I have a requirement from a client where they want to not show a default value - v-money will always force a value of 0. I don't want to mask unless the user has input something. |
+2000 |
This will be interesting for me as well, +1. |
+1. I would love this option too. At the moment, showing 0.00 is confusing to my customers as they think the price is zero as opposed to been not set |
+1 |
You can show the input placeholder using the v-money directive instead of the component.
Fiddle adapted from the |
@yvdlima |
@Kimyeongbin <input v-money="money" @change="uglyWorkaround" model="maskedValue">
methods: {
uglyWorkaround() {
this.value = parseFloat(this.maskedValue.replace(".", "").replace(",", "."));
// Do it where it makes sense for your case, not necessary on change event
}
} |
@yvdlima I find this fork. I'm using the allowBlank option and it can be solved. |
Thanks! It's cool! |
hey, Welcome I'm interested to maintain |
Is it possible to use placeholder text instead inside the input of just displaying the default model value?
The text was updated successfully, but these errors were encountered: