Skip to content

folio-org/stripes-form

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
lib
 
 
 
 
 
 
 
 
 
 
 
 
 
 

stripes-form

A redux-form wrapper for Stripes

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.