Link create - Post create edit
Post-Create Edit
The post-create edit workflow provides plugins with the opportunity to allow users to edit the newly created object immediately after having created it.
Supporting Edit
For a plugin to support edit it needs to :
- provide an edit render method via the plugin interface
- use
LinkCreateForm
UI component in order for anCreate + Edit
submission button to be available (let us know if you have a use case for post-create edit but are not usingLinkCreateForm
and wish for an API to be exposed to trigger the edit workflow)
editView
The editView
field on the LinkCreatePlugin
looks something like this:
export interface LinkCreatePlugin {
// ... rest of fields ...
/**
* The post create edit view to be rendered after edit button is clicked.
*/
editView?: ({ payload, onClose }: EditViewProps) => JSX.Element;
}