User alerts
Alert Message
This event is used to show the alert messages.
Snippet
sdk.dispatch("zs-flash-message", { message, type });
Property | Data Type | Description |
message | String | Alert messages to be shown |
type | Number | 1 - To show success messages 2 - To show warning messages |
Confirmation Message
This Event is used to show the confirmation messages.
Snippet
sdk.dispatch("zs-confirm-message", {message})
.then(SuccessHandler)
.catch(FailureHandler);
- message: confirmation message.
- SuccessHandler: Function triggered when user agrees to the confirmation message.
- FailureHandler: Function triggered when user denies the confirmation message.