There is currently a bug with <singleClicked> and <doubleClicked> in zimlets. As an alternative, until the bug is fixed, you can process single/double clicked actions in the
JS handler object for your zimlet. To do that, implement the singleClicked() and doubleClicked() methods in the zimlet handler object
JS file (be sure to include that
JS file in your zimlet definition like <include>mytestzimlet.
js</include>):
SAMPLE HANDLER OBJECT CODE FROM A ZIMLET
JS FILE:
function com_comp_testHandlerObject() {
}
/**
* Makes the Zimlet class a subclass of ZmZimletBase.
*
*/
com_comp_testHandlerObject.prototype = new ZmZimletBase();
com_comp_testHandlerObject.prototype.constructor = com_comp_testHandlerObject;
/**
* This method gets called by the Zimlet framework when the zimlet loads.
*
*/
com_comp_testHandlerObject.prototype.init =
function() {
// do something
};
/**
* This method gets called by the Zimlet framework when single-click is performed.
*
*/
com_comp_testHandlerObject.prototype.singleClicked =
function() {
// do something, like open a window/url
window.open("http://open.my.url.com/");
};
/**
* This method gets called by the Zimlet framework when double-click is performed.
*
*/
com_comp_testHandlerObject.prototype.doubleClicked =
function() {
// do something on double click
};