formate

1.0.0 • Public • Published

formx

  • Pass initial values in options
  • Set initial values
  • Validate form
  • Validate one field
  • Group forms to one container (group)
  • Validate forms group
  • Async validation
  • Validate field on blur
  • Validate field on each change if it has been already validated
  • 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

Package Sidebar

Install

npm i formate

Weekly Downloads

0

Version

1.0.0

License

ISC

Unpacked Size

111 kB

Total Files

26

Last publish

Collaborators

  • grammka