This documentation relates to an earlier version of Atlassian Gadgets.
View

Unknown macro: {spacejump}

or visit the current documentation home.

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

  • ラベルなし