Results 1 to 3 of 3

Thread: Adding a button to UI

  1. #1
    wfweaver is offline Trained Alumni
    Join Date
    Aug 2006
    Location
    Austin, TX
    Posts
    51
    Rep Power
    9

    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!

  2. #2
    wfweaver is offline Trained Alumni
    Join Date
    Aug 2006
    Location
    Austin, TX
    Posts
    51
    Rep Power
    9

    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!

  3. #3
    cdamon is offline Zimbra Employee
    Join Date
    Sep 2005
    Posts
    55
    Rep Power
    9

    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!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 13
    Last Post: 07-20-2007, 03:21 AM
  2. Is it started or not
    By kwelipatton in forum Installation
    Replies: 10
    Last Post: 03-28-2006, 11:11 PM
  3. Replies: 13
    Last Post: 10-31-2005, 04:22 PM
  4. Replies: 18
    Last Post: 10-30-2005, 09:12 PM
  5. Certify Error on (re)install
    By rodrigoccurvo in forum Installation
    Replies: 4
    Last Post: 09-23-2005, 09:04 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •