No Name Studio
Docs
Products
Blog
Search...
⌘
K
Toggle theme
On this page
Products
Nuxt Starter Kit
Components
Docs
Field Group
Field Group
Source
Usage
withDefault
boolean
true
A field with a default value.
requiredField
required
boolean
A required field.
clear (path?: string)
void
Clears form errors associated with a specific path. If no path is provided, clears all form errors.
getErrors (path?: string)
FormError[]
Retrieves form errors associated with a specific path. If no path is provided, returns all form errors.
setErrors (errors: FormError[], path?: string)
void
Sets form errors for a given path. If no path is provided, overrides all errors.
errors
Ref<FormError[]>
A reference to the array containing validation errors. Use this to access or manipulate the error information.
Create an issue
·
Edit this page
Previous
Field
Next
File Tree
On this page
Usage
Star on GitHub
Create an issue