Skip to content

folio-org/stripes-form

Repository files navigation

stripes-form

A redux-form wrapper for Stripes

Legacy use only

Use https://github.com/folio-org/stripes-final-form for any new development. This package is maintained for legacy use only.

Usage:

stripesForm({
  ...options
})(StripesComponent);

The options are passed through to reduxForm, so any applicable form options can be used here. In addition to the reduxForm options there are the following stripesForm-specific options:

{navigationCheck: [true *defaults to false]}

This option will cause Stripes Form to do a dirty check on the form and in a case where there is unsaved data the user is prompted before navigating from the form.

{allowRemoteSave: [true *defaults to false]}

This option will cause the navigation prompt to include a "Save Data" option which will remotely submit the form. This will only result in a persistence of the form data if persistence of the form's data is triggered by a form submission.

{scrollToError: [false *defaults to true]}

This option will cause Stripes Form to scroll to the topmost validation error on form submission. Scrolling is enabled by default, and could be turned-off by setting it to false.

About

LEGACY USE ONLY; A redux-form wrapper for Stripes

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors