VValidation API
name | type | default |
|---|---|---|
boolean
| null | |
Removes the ability to click or target the component. | ||
boolean
| false | |
Puts the input in a manual error state. | ||
string | string[] | [] | |
Puts the input in an error state and passes through custom error messages. Will be combined with any validations that occur from the rules prop. This field will not trigger validation. | ||
boolean
| false | |
Forces a focused state styling on the component. | ||
string
| undefined | |
Sets the text of the v-label or v-field-label component. | ||
string | number | 1 | |
Control the maximum number of shown errors from validation. | ||
unknown
| undefined | |
The v-model value of the component. If component supports the multiple prop, this defaults to an empty array. | ||
string
| undefined | |
Sets the component’s name attribute. | ||
boolean
| null | |
Puts input in readonly state. | ||
( | string | boolean | PromiseLike<ValidationResult> | ((value: any) => string | false | true) | ((value: any) => PromiseLike<ValidationResult>) | [string, any, string] )[] | [] | |
Accepts a mixed array of types | ||
| 'eager' | 'lazy' | 'blur' | 'input' | 'submit' | 'invalid-input' | 'blur lazy' | 'input lazy' | 'submit lazy' | 'invalid-input lazy' | 'blur eager' | 'input eager' | 'submit eager' | 'invalid-input eager' | 'lazy blur' | 'lazy input' | 'lazy submit' | 'lazy invalid-input' | 'eager blur' | 'eager input' | 'eager submit' | 'eager invalid-input' | undefined | |
Change what type of event triggers validation to run. | ||
any
| undefined | |
The value used when applying validation rules. | ||
name | type | |
|---|---|---|
[boolean] | ||
Event that is emitted when the component’s focus state changes. | ||
[unknown] | ||
Event that is emitted when the component’s model changes. | ||
The default Vue slot. | ||