Search code examples
javagwtgmailgmail-contextual-gadgets

Close a gmail contextual gadget


Is there a way to close / hide a gmail contextual Gadget?

I know, there are extractors, which decide when to trigger the gadget at all. But these don't give enough options to help me.

What I'm trying to do is match the email addresses with the users contact list and if there are no matches I need to close / hide the gadget.

So, it seams to me, this can not be done by an extractor.


Solution

  • The user, or your gadget code, can set gadget height to 0 - if your gadget has no name or favicon, it will apparently disappear from Gmail (only a ~20-px high grey stripe will appear).

    Gadget names and favicons are optional.

    You can see this behavior with my gadget http://wishery.com/install