banner
Banner helps to display a success or failure banner after performing an action to indicate the result to the operator. It is one of the return types of the action handler. There will be no changes to the widget in this case.
Parameter | Description | Datatype | Max Limit |
type | Type of response - banner | String | - |
status | Status of the action performed. Allowed values are sucess/failure | - | - |
text | Text to be displayed in the banner | String | 50 |
refresh_section | whether to refresh the parent section by invoking the action handler with action type navigate_back while navigating back or to show the initial data itself. | Boolean | - |
pending | The pending action is valid for 3 minutes. ie, the callback API for a particular pending action should be invoked within 3 minutes. Learn more. | Boolean | - |
Sample Script (Deluge):
response.put("type","banner"); //response.put("status", "failure"); response.put("status","success"); response.put("text","Metrix button invoked successfully"); //response.put("text", "Metrix button invoked successfully, error shown");