Canvas Message Dialogs


Canvas Message Dialogs are the Confirmation, Warning and Information message dialog boxes that can control the user action. Each dialog has its own dialog type, which defines the message type and dialog styles, which defines the actions available on dialog.

Following are the different types of dialogs available:

  • Confirmation dialog (dialogType: 'CONFIRMATION')
  • Warning dialog with Edit button (dialogType: 'WARN_EDIT_OK')
  • Message dialog (dialogType: 'MESSAGE')
  • Error dialog (dialogType: 'ERROR')
  • User Defined dialog (dialogType: 'USERDEFINED')

Following are the different types of dialog styles:

  • Yes and No (dialogStyle:'YES_NO') - this shows two buttons: Yes standing for the positive actionand No standing for the negative action.
  • Ok and Cancel (dialogStyle:'OK_CANCEL') - this shows two buttons: Ok standing for the andCancel standing for the negative action.
  • Yes, No and Cancel (dialogStyle:'YES_NO_CANCEL') – this shows three buttons: Yes standingfor the positive action and No and Cancel standing for the negative action.
  • Print and Close (dialogStyle:'PRINT_CLOSE') – this shows two buttons: Print standing for the positive action and Close standing for the negative action.

View the following messages