This commit is contained in:
2019-03-08 21:39:37 +00:00
parent 5224a03500
commit 2b803b0c3d
4 changed files with 18 additions and 85 deletions

View File

@@ -20,6 +20,7 @@ DATETIME
- Validation
- after much fuckery it's becoming clear that between the localization requirements and the complexity of server broken rules coming back from the api that I should just use my own validation code
- See here: https://vuetifyjs.com/en/components/forms#form
- And here: https://vuetifyjs.com/en/components/text-fields#custom-validation
- What is needed is a class that returns an array of functions that can be passed to vuetify "rules" property of components
On change each rule is called in turn and if one returns false or a string then it's in an error state
- I also need to add that it scans and or keeps a collection of broken rules that come back from the server and each component checks a rule that checks in turn for server broken rules in last api call