Overview
Variables and Actions connect the UI to backend services and navigation. Variables load and bind data. Actions run the next step when something happens: invoke a service, show a message, open a page, or log in.
Actions keep business logic out of widget markup. You wire them from the Actions dialog or from a widget Events tab (for example on Tap or on Submit).
When actions run
- User events: button tap, form submit, list row select
- System events: success or error after a variable or action completes
For event handler naming and UI callbacks, see Event handling overview.
Create an action
From the Actions dialog
- Open Actions in Studio.
- Click New Action.
- Pick the action type (navigation, notification, login, and so on).
From a widget event
- Select the widget.
- Open the Events tab.
- Choose an event (for example on Tap) and click New Action.
- Complete the New Action dialog.
Action types
Studio provides navigation, login, logout, timer, and notification actions. Configuration and invoke() examples are on Types of actions.