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

Version 1 Next »


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


  • No labels