Error Toast Message
ct.toastMessageManager.showErrorToastMessage is the predefined API method to show the error Toast message to the user.
The developer can configure the followingparameters for this API:
API Parameter |
Description |
Sample Value |
---|---|---|
toastHeader |
Indicates the header text for the toast message. |
Funds Transfer |
toastMessage |
Indicates the message that is to be displayed within the toast message. |
Transaction Failed. |
hideAfterTimer |
Indicates the time duration for the toast message. The value for this parameter must be provided in milli-seconds. |
3000 |
beforeShow |
Indicates the event that can be triggered right before the toast is about to appear. |
config.beforeShow=function(){ launchObjects_create_tickets = { "formId" : "FORM_DEF1", renderType : 'WINDOW' } canvas.launch(launchObjects_create_tickets);} |
afterShown |
Indicates the event that can be triggered after the toast appears. |
config.afterShown=function(){ launchObjects_create_tickets = { "formId" : "FORM_DEF1", renderType : 'WINDOW' } canvas.launch(launchObjects_create_tickets);} |
isShowLoader |
Indicates whether the toast message will be displayed with a load mask or not. This parameter can have the following values:
|
true |
Note: If no values are provided for the API parameters mentioned in the above table, then the default values will be considered for execution.
Example:
ct.toastMessageManager.showErrorToastMessage("Funds Transfer", "Transaction Failed.", 3000)
Figure 5: Error Toast Message - Mobile
Figure 6: Error Toast Message - Desktop