It's all about the answers!

Ask a question

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


Daniel Stewart (431520) | 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 (431520) | 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.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.