1.7.0 • Published 3 years ago

ms-form v1.7.0

Weekly downloads
4
License
ISC
Repository
github
Last release
3 years ago

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

1.7.0

3 years ago

1.6.0

3 years ago

1.5.0

3 years ago

1.4.0

3 years ago

1.3.1

6 years ago

1.3.0

6 years ago

1.2.2

7 years ago

1.2.1

7 years ago

1.2.0

7 years ago

1.1.0

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago