Hi cmac,
You better see ZmAppChooser.
js, which is the container for application tabs.
When you do "createApp" in your zimlet, it actually execute ZmZimletBase.
js 's createApp. And In that function, you get the appchooser and execute addButton of it like below.
Quote:
|
controller.getAppChooser().addButton(appName, {text:label, image:image, tooltip:tooltip});
|
But this method can not be called with some index, which specify where the button should be added. So the button gets added at the last in the row.
If you want to modify Zimbra's original source code, maybe you can add one method like addButton to ZmAppChooser.
js, but with index parameter like;
Quote:
|
insertButton(appName, {text:label, image:image, tooltip:tooltip,index:index});
|
Implementation of this method could be as exactly same as addButton method.
But the only difference is "buttonParams", which is used as parameter when executing constructor of ZmAppButton
and it should include "index:params.index".
Then you can exectute the method something like this in your zimlet.
Quote:
|
controller.getAppChooser().insertButton(appName, {text:label, image:image, tooltip:tooltip, index:2});
|
I did not try this idea yet.
So it is great if you try and tell me result.
I hope it will help you.