AutomationEditor
Description#
This component renders a form used to update an existing automation.
Import#
import { AutomationEditor } from "@rollouthq/connect-react";
Usage#
Here's a basic usage example:
<AutomationEditorautomationId="AUTOMATION_ID_TO_EDIT"onAutomationUpdated={() => navigate("/automations")}/>
Props#
prop | type | required | Description |
---|---|---|---|
automationId | string | true | ID of the automation to edit. |
onAutomationUpdated | (automation) => void | false | A callback to call after user successfully updates an automation. You can use this to navigate away. |
onAutomationDeleted | () => void | false | A callback to call after user successfully deleted an automation. You can use this to navigate away. |
onBeforeAutomationUpdate | ({ automationData }) => (boolean | { automationData) } | false | A callback to call after user successfully deleted an automation. You can use this to navigate away. |
onCancel | () => void | false | When provided, a Cancel button will be rendered next to the Save button with this callback hooked to it. |
renderFields | false | See Customizing Automation Form. | |
allowedActions | object | function | false | See Limiting Allowed Apps. |
allowedTriggers | object | function | false | See Limiting Allowed Apps. |
cancelButtonText | string | false | Allows customizing the text value of the 'Cancel' button. |
disableButtonText | string | false | Allows customizing the text value of the 'Delete' button. |
updateButtonText | string | false | Allows customizing the text value of the 'Update' button. |
variableMenuActivator | string | false | Customizes the text that triggers variable list in text editor. |