This commit is contained in:
2019-02-26 21:05:16 +00:00
parent 18f8a17159
commit 0f60e20e13

View File

@@ -14,31 +14,12 @@ TODO CLIENT STUFF
TODO NEXT TODO NEXT
Test separator allowing other weird characters in the template not as a function DON"T code the user options with the currency symbol etc until after it's all been worked out client side. Use static values instad in locale.
Locale should fetch those settings the first time it sees they are not present so that they are refreshed upon use and are not stored in localstorage
OK, I can make it display and take entry the way I want, but (or should they be? anyway, can work that out later)
- 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??
What about native components instead??
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:
Currency field can be a v-text field with
Prefix set to the currency symbol and v-validate to ensure it's entered correctly
You can use the object form:
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)
Other fields that are locale dependent
DateTime field next