fixes typos in the readme
This commit is contained in:
parent
c1e4b3948c
commit
d85da177eb
13
README.md
13
README.md
@ -114,17 +114,16 @@ in a `<formulate>` component. The `formulate` component has a single
|
|||||||
required prop `name` which creates the form’s key in the vuex store.
|
required prop `name` which creates the form’s key in the vuex store.
|
||||||
|
|
||||||
All `formulate-element` components nested inside a `<formulate>`
|
All `formulate-element` components nested inside a `<formulate>`
|
||||||
component will automatically be commit mutations directly to the
|
component will automatically commit mutations directly to the
|
||||||
store. The store becomes a live representation of all your form’s
|
store. The store becomes a live representation of all your form’s
|
||||||
values.
|
values.
|
||||||
|
|
||||||
The `formulate-element` component is a powerful component handles field
|
The `formulate-element` component is a powerful component which handles field
|
||||||
generation
|
generation.
|
||||||
|
|
||||||
### Validation Rules
|
### Validation Rules
|
||||||
|
|
||||||
There are several built in validation methods and you are easily able to add
|
There are several built-in validation methods and you can easily add your own as well.
|
||||||
your own.
|
|
||||||
|
|
||||||
Rule | Arguments
|
Rule | Arguments
|
||||||
----------|---------------
|
----------|---------------
|
||||||
@ -140,7 +139,7 @@ validation rules by using parenthesis after the rule name:
|
|||||||
validation="required|confirmed(confirmation_field)"
|
validation="required|confirmed(confirmation_field)"
|
||||||
```
|
```
|
||||||
|
|
||||||
The field label used in built in validation methods is the `validation-label`
|
The field label used in built-in validation methods is the `validation-label`
|
||||||
attribute on your `formulate-element`. If no `validation-label` is found then
|
attribute on your `formulate-element`. If no `validation-label` is found then
|
||||||
the `label` attribute is used, and if no `label` attribute is found it will
|
the `label` attribute is used, and if no `label` attribute is found it will
|
||||||
fall back to the field’s `name` attribute (which is required).
|
fall back to the field’s `name` attribute (which is required).
|
||||||
@ -169,7 +168,7 @@ attribute on the `formulate-element`.
|
|||||||
Validation rules should return an error message string if they failed, or
|
Validation rules should return an error message string if they failed, or
|
||||||
`false` if the input data is valid.
|
`false` if the input data is valid.
|
||||||
|
|
||||||
Adding your own validation rules is easy, just pass an additional object
|
Adding your own validation rules is easy. Just pass an additional object
|
||||||
of rule functions in the plugin’s installation call:
|
of rule functions in the plugin’s installation call:
|
||||||
|
|
||||||
```js
|
```js
|
||||||
|
Loading…
Reference in New Issue
Block a user