1
0
mirror of synced 2024-11-25 14:56:03 +03:00

fixes typos in the readme

This commit is contained in:
Luan Nguyen 2018-03-13 17:58:24 -05:00
parent c1e4b3948c
commit d85da177eb

View File

@ -114,17 +114,16 @@ in a `<formulate>` component. The `formulate` component has a single
required prop `name` which creates the forms key in the vuex store. required prop `name` which creates the forms 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 forms store. The store becomes a live representation of all your forms
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 fields `name` attribute (which is required). fall back to the fields `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 plugins installation call: of rule functions in the plugins installation call:
```js ```js