It's all about the answers!

Ask a question

How to add preferences option to custom dashboard gadget/widget menu?


Daniel Stewart (431320) | asked Mar 14 '16, 1:11 p.m.

Hi,

Some of the out of the box dashboard widgets contain an additional "settings" option in the menu. This allows widget settings to persist between browser sessions. How can I add a "settings" option to the menu in a custom dashboard widget?

Thanks,

Dan

One answer



permanent link
Daniel Stewart (431320) | answered Mar 15 '16, 10:33 a.m.
edited Mar 15 '16, 10:34 a.m.

It turns out I was missing the "UserPrefs" section in the widget xml. Information here: https://developers.google.com/gadgets/docs/xml_reference#user-preferences 

Now "Settings" appears in the menu.

Your answer


Register or to post your answer.