Results 1 to 2 of 2

Thread: Question about handlerObject and ContentObject in Zimlet spec

  1. #1
    jason719 is offline Active Member
    Join Date
    Aug 2009
    Posts
    26
    Rep Power
    5

    Default Question about handlerObject and ContentObject in Zimlet spec

    Hi,

    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?

    Thanks

  2. #2
    ychaouche is offline Senior Member
    Join Date
    Jul 2012
    Location
    Algiers
    Posts
    55
    Rep Power
    2

    Default

    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.

Thread Information

Users Browsing this Thread

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

Posting Permissions

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