Flow Alert Widget
A container that reveals and animates its child widgets when one of your flows fires an alert at it. You design the layout and the fields it carries.
It's an alert, so it queues: one on screen at a time, the next waits. For something that fires immediately and overlaps what's showing, use the Flow Event Widget.
How It Works
- Add a Flow Alert widget and give it an Alert name.
- Declare the parameters the flow will send.
- Add child widgets (text, images, sounds) and bind them with
{{flowAlert.<name>}}tokens. - In the flow editor, add a Flow Alert effect and pick this widget from its dropdown.
The widget starts hidden. When the flow fires, it animates its children in, holds, and animates them out.
Parameters
Each parameter has a name and a type:
| Type | For |
|---|---|
| Text | Any text |
| Number | A numeric value |
| Toggle | True or false |
| Image | An image URL |
| Colour | A colour value |
The name is the token name: a parameter called winner becomes {{flowAlert.winner}}. Declared parameters appear as inputs on the flow node and as tokens in the variable picker.
Renaming a parameter keeps flows wired to it working and updates the node's label. Deleting one leaves the flow node showing that input as unusable.
Naming and targeting
A flow picks this widget by its overlay and its alert name together. Duplicating an overlay creates a new target, and flows keep pointing at the original until you change them. A blank alert name can't be reached.
Several Flow Alert widgets on the same overlay may share a name. All of them fire, and the alert finishes when they all have.
Settings
- Alert name: how flows address this widget
- Parameters: the fields flows may send it
- Animation / Easing / In duration / Hold / Out duration: how it appears and leaves
- Backdrop: background behind the children
A flow can override Hold for one alert with the node's Hold seconds input.