how add button in toolbar

Interested in talking about Mash-up's? This is the place.
bathio2014
Posts: 4
Joined: Fri Mar 06, 2015 9:42 am

how add button in toolbar

Postby bathio2014 » Thu May 14, 2015 6:11 am

hi,


I want to create a zimlet to add a button in the toolbar w i find an example in the link below


https://wiki.zimbra.com/wiki/ZCS_6.0:Zimlet_Developers_Guide:Examples:Adding_Toolbar_Buttons



But this example doesn't  work . if anyone have a example or source code for this zimlet


thanks.




pkopacz
Posts: 6
Joined: Sat Sep 13, 2014 3:52 am

how add button in toolbar

Postby pkopacz » Wed May 20, 2015 2:41 pm

If you are trying to get it working in ZCS 8+, you will need to replace this line:



if (viewId == ZmId.VIEW_CONVLIST || viewId == ZmId.VIEW_TRAD) {



With this:



var viewType = appCtxt.getViewTypeFromId(viewId);

if (viewType == ZmId.VIEW_CONVLIST || viewType == ZmId.VIEW_TRAD) {
bathio2014
Posts: 4
Joined: Fri Mar 06, 2015 9:42 am

how add button in toolbar

Postby bathio2014 » Tue Jun 02, 2015 2:29 pm

Thanks

Return to “Zimlets”

Who is online

Users browsing this forum: No registered users and 3 guests