ms-form

1.7.0 • Public • Published

MS-Form

formConnect options

const options = {
  // form name
  form,

  // validate function
  validate,

  // initial values: {...} or (state, props) => ({...})
  initialValues
}

Form gets props

const props = {
  // save form to state
  formChanged: this.formChanged,
  // reset form
  formReset: this.formReset,
  // form values
  formValues,
  // form validation
  formValidation,
  // form isValid flag
  formIsValid,

  // send async validation result through this function
  formAsyncValidationResult: this.asyncValidationResult,

  // function to get changed form, after events
  formGet: this.formGet, // composit, takes input parameters of onChange and onSelected
  formGetOnChange: this.formGetOnChange,
  formGetOnSelected: this.formGetOnSelected,

  // field props generator
  formField: this.formField
}

checkout demo

Readme

Keywords

Package Sidebar

Install

npm i ms-form

Homepage

.

Weekly Downloads

1

Version

1.7.0

License

ISC

Unpacked Size

16.4 kB

Total Files

25

Last publish

Collaborators

  • vladimirbuskin
  • vlad.s-92