Question

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.

Was it helpful?

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

OTHER TIPS

Have a button/link that can show/hide the content part of the gadget. Save this preference in a <UserPref>. When the gadget is loaded again, show or hide based on that pref.

You can check how to define, set and get UserPref here: http://code.google.com/apis/gadgets/docs/basic.html#Userprefs

Also remember to change the height when showing or hiding the content pane within the gadget.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top