Skip to main content
Version: 4.62

layerAction

Performs an action on another layer.

Field Configurations

KeyTypeDescriptionDefault Value
"params" (required)Objectundefinednull

Parameters

KeyTypeDescriptionDefault Value
"actions" (required)ArrayThe list of action, that will be performed on the other layer.null
"async"BooleanSpecifies whether the action should perform asynchronously.null
"layerName" (required)StringThe name of the other layer. (not the dataKey)null
"location"LocationLocation inside the app.null

Inherited

From Base Action

Base Action

Field Configurations

KeyTypeDescriptionDefault Value
"dynamicParams"ObjectDynamic params to retrieve data from a specific context e.g. a userSetting.null
"leadingDelimiter"StringThe leading mustache delimiter to use.null
"params"Object,ArrayObject containing the properties of the action.null
"trailingDelimiter"StringThe trailing mustache delimiter to use.null
"type"StringType name of the action.null

Examples

Example 1: Set a new value for a layer

Show ExampleHide Example

Set a new value for the text layer exampleText.

{
"type": "layerAction",
"params": {
"layerName": "exampleText",
"actions": [
{
"type": "setLayerValue",
"params": {
"value": "New Text"
}
}
]
}
}
The app showing the results of the sample code from Example 1.The app showing the results of the sample code from Example 1.