Quantcast
Channel: Zimbra :: Forums - Zimlets
Viewing all articles
Browse latest Browse all 171

How to close my zimlet tab application using javascript???

$
0
0
Hello there

I developed a zimlet tab app and I launch it using javascript when I do click in a toolbar button. That works fine, my app is open in a tab perfectly using this:

Code:

var simpleAppName = this.createApp("MyApp", "zimbraIcon", " MyApp ");
var app = appCtxt.getApp(simpleAppName);       
app.launch();

Inside my zimlet I have a Cancel button and I want to close my tab application (like we close the compose tab) and switch to the Mail View when I do a click on it. So far, I just manage to change the view using this:

Code:

appCtxt.getAppController().activateApp("Mail")
But I steel need to close the tab which remains open but inactive, any suggestions please??????
Thanks

Viewing all articles
Browse latest Browse all 171

Trending Articles