Skip to main content
Version: 4.59

closeView

Closes a previously created, named view.

note

The view does not have to be on top of the viewstack or be visible to the user at this point. The action looks for a view with the specified name and closes it.

Field Configurations​

KeyTypeDescriptionDefault Value
"params"Objectundefinednull

Parameters​

KeyTypeDescriptionDefault Value
"async"BooleanSpecifies whether the action should perform asynchronously.null
"name" (required)StringThe name of the view to be closed.null
"transition"Boolean,StringSpecifies whether the system animation should be used.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: Close a view​

Goal: Create a closeView action using the system animation.

To achieve this the following code can be used:

{
"type": "closeView",
"params": {
"name": "c_settings",
"transition": true
}
}

The name parameter specifies the view that is to be closed.

Result:

A closeView action has been created.