Module

GenericConfigForm

Methods

# inner GenericConfigForm(props) → {React.ReactElement}

A Generic Form with a header and buttons to submit and cancel Must be wrapped in a FormProvider
Parameters:
Name Type Attributes Description
props object
headerTitle string <optional>
the title to display in the header
resetColor string <optional>
the color to use for the edit button
cancelColor string <optional>
the color to use for the cancel button
cancelUrl string <optional>
the url to redirect to when the cancel button is clicked
isEdit boolean <optional>
whether or not the form is in edit mode
submitColor string <optional>
the color to use for the submit button
sectionProps FormSectionProps <optional>
the props to pass to the section (See FormSections Component)
cancelLabel string <optional>
the label to use for the cancel button
resetLabel string <optional>
the label to use for the reset button
submitLabel string <optional>
the label to use for the submit button
onSubmit function <optional>
the function to call when the form is submitted
modifying boolean <optional>
whether or not the form is currently being modified
children object <optional>
the children to render
renderLoading function <optional>
the function to render while the form is loading

View Source stories/ConfigForm/GenericConfigForm.jsx, line 123

- the rendered form
React.ReactElement