Warning Message
This dialog box accepts the property driven text or plain text as warning message and comes with the Edit, and Ok buttons. The end users can either click Edit to make changes or Okay to proceed but not the close icon of the dialog box.
The typical structure of the message dialog is:
var Warning_Win = new canvas.Dialog( { title : 'Dialog Window Title', dialogType : 'WARN_EDIT_OK', message : 'Detailed warning message', editHandler : function () { Warning_Win.close(); //Your Ok action goes here }, okHandler : function () { //Your Ajax request to continue the action } });