Developer
Documentation
Resources
Get Support
Sign in
Developer
Get Support
Sign in
DOCUMENTATION
Cloud
Data Center
Resources
Sign in
Developer
Sign in
DOCUMENTATION
Cloud
Data Center
Resources
Sign in
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:

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

    1
    2
    view: {
      enableReload: true,
      template: ...
    }
    

Gadget Developers' JavaScript Cookbook

Using the Atlassian Gadgets JavaScript Framework

Rate this page: