AutomationEditor

Props#

proptyperequiredDescription
automationIdstringtrueID of the automation to edit.
onAutomationUpdated(automation) => voidfalseA callback to call after user successfully updates an automation. You can use this to navigate away.
onAutomationDeleted() => voidfalseA callback to call after user successfully deleted an automation. You can use this to navigate away.
onBeforeAutomationUpdate({ automationData }) => (boolean | { automationData) }falseA callback to call after user successfully deleted an automation. You can use this to navigate away.
onCancel() => voidfalseWhen provided, a Cancel button will be rendered next to the Save button with this callback hooked to it.
renderFieldsfalseSee Customizing Automation Form.
allowedActionsobject | functionfalseSee Limiting Allowed Apps.
allowedTriggersobject | functionfalseSee Limiting Allowed Apps.
cancelButtonTextstringfalseAllows customizing the text value of the 'Cancel' button.
disableButtonTextstringfalseAllows customizing the text value of the 'Delete' button.
updateButtonTextstringfalseAllows customizing the text value of the 'Update' button.
variableMenuActivatorstringfalseCustomizes the text that triggers variable list in text editor.