All Versions
Gadgets and Dashboards 3.0Gadgets and Dashboards 2.0
Gadgets and Dashboards 1.0
More...
Terminology: On this page and its child pages,
JavaScript Framework is currently in JIRA only
The Atlassian Gadgets JavaScript Framework is currently part of the JIRA project. It will eventually be moved into Atlassian Gadgets. See AG-622. Until that merge is completed, you will only be able to use the framework if you are developing gadgets for JIRA.
Here is a list of all entries in the cookbook, plus the first few lines of content. Click a link to see the full text for each entry.
This will add a reload icon to the footer of the gadget and an auto-reload option to the config screen:
Use the following code in your view template function:
Enable the onResizeAdjustHeight option on the view object:
The framework wraps the OpenSocial gadgets.io.makeRequest method with the standard jQuery interface http://docs.jquery.com/Ajax/jQuery.ajax. You should write code as if you were just using the jQuery interface. For example:
Enable the onResizeReload option on the view object:
Use the framework and include the views feature:
Include the isConfigured userpref defaulted to 'false':
The framework uses the following features. It is safest just to include all of them:
The framework requires the inclusion of the following resources:
It is possible to have the theme dynamically adapt to the space available with some JavaScript like this:
Specify the appropriate features as 'required' in your gadget XML, include the necessary resources in the CDATA section, and use the useOauth parameter when constructing your gadget:
Use the gadget object API for createCookie, readCookie and eraseCookie:
There are a couple of UserPref values that the framework can use to add functionality to the gadget:
Using the Atlassian Gadgets JavaScript Framework
Gadgets and Dashboards Documentation