Results 1 to 2 of 2

Thread: Question about handlerObject and ContentObject in Zimlet spec

Hybrid View

  1. #1
    Join Date
    Aug 2009
    Rep Power

    Default Question about handlerObject and ContentObject in Zimlet spec


    Can anyone elaborate more about what's the "handlerObject" and how it associates with contentObject? I read the white paper and found little explanation about that?

    Also is there certain method of "handlerObject" invoked automatically? such as its constructor or "init" function?


  2. #2
    Join Date
    Jul 2012
    Rep Power


    AFAIK handlerObject is the actual Zimlet javascript code, and yes many of its methods get invoked automatically, that's how frameworks work generally. For example, when you switch tabs (mail -> appointments), all zimlets have their initializeToolbar method called. When an object is dropped on a panel zimlet, it has its doDrop method called and so on.

    contentObject is something you declare in the XML definition file of your zimlet to actually match certain strings or regular exepressions in any content in the zimbra interface (in emails, in contact notes, in appointements notes etc.), so the two are not really related.

    You can of course create a zimlet that have both a contentObject and a handlerObject, each offering a set of features for your zimlet to play with.

Posting Permissions

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