...
API Parameter | Description | Sample Value | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
text | Indicates the message that is to be displayed within the toast message. | KYC | |||||||||
heading | Indicates the header text for the toast message. | Please update your Aadhar details | |||||||||
showHideTransition | Indicates the type of transition effect. This parameter can have the following values:
| fade | |||||||||
allowToastClose | Indicates whether the toast message will be displayed with a close option or not. This parameter can have the following values:
| true | |||||||||
hideAfter | Indicates the time duration for the toast message. The value for this parameter must be provided in milli-seconds. | 5000 | |||||||||
loader | Indicates whether the toast message will be displayed with a load mask or not. This parameter can have the following values:
| false | |||||||||
loaderBg | Indicates the background color for the load mask. The value for the background color should be specified as Hexadecimal. | #9EC601 | |||||||||
position | Indicates the position of the toast message on the screen. | top-right | |||||||||
bgColor | Indicates the background color for the toast message. The value for the background color should be specified as Hexadecimal. | #000000 | |||||||||
textColor | Indicates the text color of the toast message. The value for the color should be specified as Hexadecimal. | #fff | |||||||||
textAlign | Indicates the text alignment of the message content within the toast message. This parameter can have the following values:
| left | |||||||||
icon | Indicates the icon for the toast message. | info | |||||||||
beforeShow | Indicates the event that can be triggered right before the toast is about to appear. |
| |||||||||
Indicates the event that can be triggered after the toast appears. |
|
Info |
---|
If no values are provided for the API parameters mentioned in the above table, then the default values will be considered for execution. |
...
Example - API:
Code Block | ||
---|---|---|
| ||
ct.toastMessageManager.showCustomToastMessage(config) |
...