AutomationsManager
Description#
This components allows end user to list, create and update his automations.
Import#
import { AutomationsManager } from "@rollout/connect-react"
Usage#
Here's a basic usage example:
<AutomationsManager />
Filtering#
Filtering automations is possible by specifying a predicate via the optional filter
function property.
The example below will filter automations whose trigger.inputParams.form_id
is 123
.
<AutomationsManagerfilter={(automation) => automation.trigger.inputParams.form_id === "123"}/>
Props#
prop | type | required | default | Description |
---|---|---|---|---|
token | string | true | Token to authenticate the end user. | |
apiBaseUrl | string | false | URL to the API endpoint of your Rollout environment. | |
onAutomationCreated | See AutomationCreator | |||
onBeforeAutomationCreate | ({ automationData }) => (boolean | { automationData) } | See AutomationCreator | ||
prefilled | object | false | Data that can be prefilled for the trigger. Please see the section on creating automations. | |
getDefaultActionInputParams | false | See Dynamically Prefilling Actions. | ||
getDefaultTriggerInputParams | false | See Dynamically Prefilling Actions. | ||
filter | (automation) => boolean | false | A predicate function callback used to filter the automations. | |
allowedActions | object | function | false | See Limiting Allowed Apps. | |
allowedTriggers | object | function | false | See Limiting Allowed Apps. | |
title | string | false | Customizes the title of the manager. | |
searchPlaceholder | string | false | Customizes the placeholder of the search bar. | |
noAutomationsMessage | string | false | Customizes the message displayed when no automations are found. | |
newButtonText | string | false | Customizes the text of the button used for creating new automations. | |
saveButtonText | string | false | Customizes the text of the button used for saving an automation. | |
deleteButtonText | string | false | Customizes the text of the button used for deleting an automation. | |
viewButtonText | string | false | Customizes the text of the view button on an item's menu. | |
variableMenuActivator | string | false | Customizes the text that triggers variable list in text editor. |