action-list
This action allows for multiple actions to be run while only requiring the user to press a single button. The actions can be set to run sequentially or executed as a bulk functionality.
Configuration options
An action list can be set up in various ways:
As a primary action button.
In onRefresh/onFocus events on any type of jig.
isSequentialproperty can be a static value or it can accept expressions.
Some properties are common to all actions, see Common action properties for the list of actions and their configuration options.
Examples and code snippets
Action-list as a primary action button

This example shows an action-list with two actions. The first action is submit-form, which will save the entered data, and the second action, go-back, will redirect us back to the previous page.
Example: See the full example of action-list in GitHub
title: Action-list example
type: jig.default
description: The first action will submit the form and the second action will redirect us back to the previous page.
actions:
- children:
- type: action.execute-entity
options:
title: Create Record
provider: DATA_PROVIDER_DYNAMIC
entity: default/employees
method: save
data:
firstname: =@ctx.components.firstname.state.value
lastname: =@ctx.components.lastname.state.value
phone: =@ctx.components.phone.state.value
onSuccess:
type: action.go-back
children:
- type: component.form
instanceId: simple-form
options:
isDiscardChangesAlertEnabled: false
children:
- type: component.text-field
instanceId: firstname
options:
label: First name
- type: component.text-field
instanceId: lastname
options:
label: Last name
- type: component.text-field
instanceId: phone
options:
label: Phone number
keyboardType: decimal-padAction list as onPress/onChange

In this example, we have an action list with the onPress function in the list-item. The first action will color the last chosen item and the second action will sync our entity with the database and we can use them for further actions.
Action list as onRefresh/onFocus
In this example when we refresh the jig/jig is focused, we call set-state and sync-entities actions.
Example: See the full example of the action list onRefresh in GitHub. See the full example of the action list onFocus in GitHub.
Last updated
Was this helpful?