Skip to main content
Version: 4.55

switchTab

Field Configurations

KeyTypeDescriptionDefault Value
"params" (required)Objectundefinednull

Parameters

KeyTypeDescriptionDefault Value
"async"BooleanSpecifies whether the action should perform asynchronously.null
"index" (required)Number,StringIndex of the tab to navigate to. Starting at 0.null
"navigateToRoot"Boolean,StringSpecifies whether to navigate to the lowest view in the tab.null
"navigateToRootAnimated"Boolean,StringSpecifies if an animation should be used.false
"onSuccess"StringEvent that will be fired in case of success.null
"onSuccessType"StringType of the onSuccess eventnull

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: Switch tabs

Goal: Switch between two tabs

Navigate to tab with the index 1

{
"type": "switchTab",
"params": {
"index": 1
}
}

The actions to be executed are specified in the actions parameter, in this case a switchTab action.

Result:

Screencapture of the app showing the results of the sample code from Example 1.
A switchTab action has been created.