Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Developers

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-11-2007, 09:03 PM
Trained Alumni
 
Posts: 51
Question Adding a button to UI

Is there an easy/preferred way to add a button and associated functionality to the UI? I'm also looking for something that doesn't require redeployment on each and every upgrade. Specifically I need to add a special type of send button to the Compose window.

Thanks!
Reply With Quote
  #2 (permalink)  
Old 03-26-2007, 01:20 PM
Trained Alumni
 
Posts: 51
Question Adding Button to UI - refresh

I haven't seen a response and I really need some general help on how to get started with this task. I'm new to Zimbra and it's way of doing things so guidance would be much appreciated. I'm sure there is a "right" and "wrong" way of going about this!
Reply With Quote
  #3 (permalink)  
Old 03-26-2007, 02:09 PM
Zimbra Employee
 
Posts: 52
Default

How you do it depends on where you're adding the button: whether in the core client code, or via a zimlet. Either way, you'd probably create an operation for it - an operation in the ZCS client represents an action the user can take, and is represented visually as either a button or a menu item.

If you do it in the core client code, you would do something like this (assuming you're reasonably current):

- ZmMailApp: create an operation for it via ZmOperation.registerOp
- ZmComposeController: add it to the toolbar (_initializeToolBar)
- ZmComposeController: add a listener for it (constructor)
- ZmComposeController: write the listener, have it do what you want

Via a zimlet (this all goes in your zimlet's .js file):

- create an operation for it via ZmOperation.registerOp
- get a reference to the compose controller, add operation to its toolbar
- add a listener
- write the listener

-Conrad
__________________
Bugzilla - Wiki - Downloads - Before posting... Search!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.