Skip to main content
Version: 4.62

switchTab

Switches the tab on a tabView to the provided index.

note

The first tab of a tabView starts with the number 0.

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 1: Switch to specific tabs

Show ExampleHide Example

Switch to the corresponding tab with the index specified in the params.

{
"type": "switchTab",
"params": {
"index": 0
}
}
{
"type": "switchTab",
"params": {
"index": 1
}
}
{
"type": "switchTab",
"params": {
"index": 2
}
}
The app showing the results of the sample code from Example 1.The app showing the results of the sample code from Example 1.