Use this to configure triggers that trigger a specific action when an event occurs.
The action is set in the action
property, and the event is described in the other fields.
The event can be triggered immediately when the task is loaded ("fireImmediately": true
) or when data changes in the property specified in onChangeOf
.
You can also set conditions in the conditions
property that must be met in order for the trigger to fire.
In the following example, the plugin.trigger
component is used to modify the original search query: the word "cats" is added to the word "bobtail". This happens immediately after the task is loaded.
Name | Type | Description |
---|---|---|
type * | "plugin.trigger" | Set component type. |
action | action | The action to perform when the trigger fires. |
condition | condition | The condition that must be met in order to fire the trigger. |
fireImmediately | boolean | Flag indicating whether the trigger should be fired immediately after the task is loaded. |
onChangeOf | reactive | The data that triggers the action when changed. |
Last updated: August 29, 2023