FormEdit
Storybook
Browse the props, controls and all the stories of FormEdit in Storybook.
The FormEdit component wraps the FormBuilder component and adds the title, display, name and path fields at the top along with a save button.
Props
| Name | Type | Default | Description |
|---|---|---|---|
form | object | {display: 'form'} | The form definition of the exiting form that is to be modified. |
options | object | {} | The options to be passed to FormBuilder |
saveText | string | '' | The string that will be displayed in the save-button |
Event Props
| Name | Parameters | Description |
|---|---|---|
onSubmit | form | Called when the save button is pressed. Will pass the form definition to the callback. |