Confirmation Dialog

This dialog box accepts the property driven text or plain text as confirmation message and comes with the Yes and No buttons. The end users can either click Yes or No but not the close icon of the dialog box.

The typical structure of the message dialog is:

var Confirmation_Win = new canvas.Dialog
({
	title : 'Dialog Window Title',
	dialogType : 'CONFIRMATION',
	message : 'Detailed confirmation message', 
	yesHandler : function ()
	{
		//Your Ok action goes here
	}, 
	noHandler : function ()
	{
		//Your No action goes here
	}, 
	cancelHandler : function ()
	{
		//Your Cancel action goes here
	}
}); 


Refer the following sample dialog for its usage:

var Confirmation_Win = new canvas.Dialog
({
	title : 'Confirmation',
	dialogType : 'CONFIRMATION',
	message : 'You are about to DELETE two apps. Do you also want to delete their Sub Workspaces?', 
	yesHandler : function ()
	{
		Confirmation_Win.close();
	}, 
	noHandler : function ()
	{
		Confirmation_Win.close();
	}, 
	cancelHandler : function ()
	{
		Confirmation_Win.close();
	}
}); 
Confirmation_Win.show();