Zimlet Developers Guide:Application Context
Introduction | Getting Started | Dev Environment Setup | Developing Zimlets |
|
API Specifications | Example Zimlets |
The Application Context is a global object available via JavaScript from your Zimlet Handler Object. Using the Application Context object, you can access various application information, dialog boxes, and user preferences. The Application Context is accessed via the appCtxt
object. For example, the following shows how to access the simple message dialog from the application context:
com_zimbra_test.prototype.myMethod = function() { var dialog = appCtxt.getMsgDialog(); //get a simple message dialog dialog.reset(); // reset the dialog dialog.setMessage("Hello World!", DwtMessageDialog.INFO_STYLE); // set the message "info" style dialog.popup(); // display the dialog };
Accessing Dialogs
Application Information
Account Information
API Documentation
JavaScript documentation for the Application Context class is available at:
http://files.zimbra.com/docs/zimlet/zcs/6.0/jsdocs/symbols/ZmAppCtxt.html