formate
v1.0.0
Published
Form worker
Downloads
5
Readme
formx
- [x] Pass initial values in options
- [x] Set initial values
- [x] Validate form
- [x] Validate one field
- [x] Group forms to one container (group)
- [x] Validate forms group
- [x] Async validation
- [x] Validate field on blur
- [x] Validate field on each change if it has been already validated
- [x] Validate field on each change if form was submitted
- [ ] 'isChanged' on field, form, forms group
- [ ] Get forms group state (values, isChanged, etc)
- [ ] Set state to forms group
- [ ] Reset form to default state, options, etc
- [ ] Add option to
setValues()
to allow set values without validation each field - [ ] Checkbox and Radio support (boolean checked, value)
- [ ] Memo for async validators (decorator)
- [ ] Option for validation debounce timeout
To run examples
npx babel-node examples/validate-form.js