User alerts

Alert Message

This event is used to show the alert messages.


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

1 - To show success messages

2 - To show warning messages

Confirmation Message

This Event is used to show the confirmation messages.


sdk.dispatch("zs-confirm-message", {message})
  • message: confirmation message.
  • SuccessHandler: Function triggered when user agrees to the confirmation message.
  • FailureHandler: Function triggered when user denies the confirmation message.