This commit is contained in:
@@ -14,6 +14,13 @@ TODO CLIENT STUFF
|
||||
|
||||
TODO NEXT
|
||||
|
||||
Test separator allowing other weird characters in the template not as a function
|
||||
|
||||
OK, I can make it display and take entry the way I want, but
|
||||
- separator allows anything, not just what I specify (try it without a function directly in the template)
|
||||
- Value comes back as text, I need to parse it whatever the case
|
||||
|
||||
Maybe I can just allow free form entry and handle parsing, display in my own code??
|
||||
|
||||
Find out how to do a currency and other types of numeric input
|
||||
Make the currency and numeric fields work, then do the next stuff below:
|
||||
@@ -25,6 +32,12 @@ v-validate="{ required: true, decimal: [2, ','] }"
|
||||
|
||||
https://github.com/baianat/vee-validate/commit/d9a3e97846aa47074e11bda4499ad539807ef0aa#commitcomment-25381793
|
||||
|
||||
Do I get back the proper currency value they entered that I can use even if it's comma separator??
|
||||
(Looks like I will need to parse it)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -82,6 +82,9 @@
|
||||
</v-flex>
|
||||
</v-layout>
|
||||
<v-layout align-center justify-space-around row wrap mt-5>
|
||||
<v-flex xs1>
|
||||
<v-btn @click="test">TEST</v-btn>
|
||||
</v-flex>
|
||||
<v-flex xs1>
|
||||
<v-btn @click="clear">clear</v-btn>
|
||||
</v-flex>
|
||||
@@ -169,20 +172,27 @@ export default {
|
||||
},
|
||||
submit() {
|
||||
//alert("VALIDATING>>>");
|
||||
debugger;
|
||||
console.log(obj.dollarAmount2);
|
||||
alert(obj.dollarAmount2);
|
||||
this.$validator.validateAll();
|
||||
|
||||
},
|
||||
localeDecimalSeparator(){
|
||||
debugger;
|
||||
return ',';
|
||||
},
|
||||
localeCurrencySymbol(){
|
||||
return 'Eur';
|
||||
},
|
||||
clear(){
|
||||
debugger;
|
||||
console.log(this.data().obj.dollarAmount2);
|
||||
alert(data().obj.dollarAmount2);
|
||||
},
|
||||
test(){
|
||||
console.log(this.obj.dollarAmount2);
|
||||
debugger;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user