FormErrors ​
Renders form errors.
Basic Usage ​
<FormErrors>
component can be used in <Vueform>
component's #empty
slot:
<template>
<Vueform>
<template #empty>
<FormErrors v-if="hasErrors" />
</template>
</Vueform>
</template>
Options ​
Find below the list of options that can use to configure FormErrors
component. Options can be passed to the component via props.
view ​
- Type:
string
<FormErrors view="alt" ... />
The name of the view to be used for the component. If undefined
the default view will be used.
Learn more about views here.
Properties ​
All the data
, computed
and inject
properties of the component.
errors ​
- Type:
array
- Group:
computed
Form errors including element errors and the ones added to messageBag
manually.
Size ​
- Type:
component
- Group:
inject
The size of the component.
View ​
- Type:
string
- Group:
computed
The name of the resolved view for the component. This one should be used to determine the component's view in class functions.
template ​
- Type:
object
- Group:
computed
The component's template.
classes ​
- Type:
object
- Group:
computed
The component's classes.
theme ​
- Type:
object
- Group:
inject
The global theme object, which contains all the default templates and classes.
form$ ​
- Type:
component
- Group:
inject
The root form's component.