Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This is a simple message window, which accepts the property driven text or plain text as information message with the Ok OK button.

The typical structure of the message dialog is:

Code Block
languagejs
var Message_Win = new canvas.Dialog(
{
	title : 'Success', 
	dialogType : 'MESSAGE', 
	message : 'Detailed information message', 
	okHandler : function ()
		{
			//Your Ok action goes here
		} 
}); 

Refer the following sample dialog for its usage:

Code Block
languagejfx
var TransSuccess_Win = new canvas.Dialog(
{
	title : 'Success', 
	dialogType : 'MESSAGE',
	message : 'Event Alert Created Successfully', 
	okHandler : function () 
	{
		CBXFORMCONTAINER.exit(config);
	}
}); 
TransSuccess.show(); 

...