Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Current »

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
	} 
}); 



  • No labels