Last updated Dec 8, 2017

Adding a reload option to your gadget

This page is part of the Gadget Developers' JavaScript Cookbook.

How do I add an automatic reload to my gadget?

This will add a reload icon to the footer of the gadget and an auto-reload option to the config screen:

  1. Include the refresh userpref defaulted to false:

    <UserPref name="refresh" datatype="hidden" default_value="false" />
  2. Enable reloading in the view config object:

    view: {
      enableReload: true,
      template: ...

Gadget Developers' JavaScript Cookbook

Using the Atlassian Gadgets JavaScript Framework

Rate this page: