This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user