User alerts

Alert Message

This event is used to show the alert messages.

Snippet

sdk.dispatch("zs-flash-message", { message, type });
PropertyData TypeDescription
messageStringAlert messages to be shown
typeNumber

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.