すべてのバージョン
Gadgets and Dashboards 3.0Gadgets and Dashboards 2.0
Gadgets and Dashboards 1.0
More...
A 'feature' is a JavaScript library that provides specific functionality for inclusion into your gadget. This page gives an overview of how you can use a feature in your gadget and a list of available features.
To create a gadget that uses a particular feature, such as dynamic height adjustment, you will do the following:
<Require>
element or an <Optional>
element in your gadget XML specification. The format is:
<ModulePrefs title="My Gadget"> <Require feature="my-feature-name"/> </ModulePrefs>
<ModulePrefs title="My Height-Adjusting Gadget"> <Require feature="dynamic-height"/> </ModulePrefs>
<Content>
element of your gadget XML specification. The JavaScript APIs are described in the OpenSocial JavaScript API and in our JavaScript API reference guide.An unadorned list of features is available from our code repository. Below we provide more detail about the features.
Supported in |
Feature |
説明 |
Specified by |
---|---|---|---|
Fully supported |
atlassian.util |
Allows a gadget to retrieve the base URL for the renderer server. Example: <Module> <ModulePrefs title="My Gadget"> <Optional feature="atlassian.util"/> </ModulePrefs> <Content type="html"> <![CDATA[ <div id="main"> <script language="javascript"> function showRendererBaseUrl() { document.getElementById("main").innerHTML = atlassian.util.getRendererBaseUrl(); }; gadgets.util.registerOnLoadHandler(showRendererBaseUrl); </script> </div> ]]> </Content> </Module> Because this feature is specific to Atlassian Gadgets, we recommend that you use |
Atlassian Gadgets |
サポート対象外 |
analytics |
Google Analytics |
OpenSocial |
サポート対象外 |
caja |
Support for Caja, a Google project aiming to allow web applications to provide active content safely, simply, and flexibly. The basis of the project is that a subset of Javascript provides an object-capability language. |
OpenSocial |
Not referenced |
content-rewrite |
The content-rewrite feature defines a set of rewriting operations that a container can perform on rendered and proxied content. It also defines rules to allow developers to control which content the rewriter can operate on. <ModulePrefs title="My Gadget"> <Optional feature="content-rewrite"> <Param name="expires">86400</Param> <Param name="include-url"></Param> <Param name="exclude-url">excluded</Param> <Param name="exclude-url">moreexcluded</Param> <Param name="minify-css">true</Param> <Param name="minify-js">true</Param> <Param name="minify-html">true</Param> </Optional> </ModulePrefs> See the OpenSocial Gadgets API Specification. |
OpenSocial |
Fully supported |
core.io |
Provides remote content retrieval functions. See the OpenSocial Note that you do not need to explicitly request this feature with a |
OpenSocial |
Fully supported |
core |
Provides core gadget support, including JavaScript APIs for manipulating JSON data, escaping and unescaping strings, and accessing user preferences. See the OpenSocial Note that you do not need to explicitly request this feature with a |
OpenSocial |
Fully supported |
dynamic-height |
Gives a gadget the ability to resize itself. Format: <ModulePrefs title="My Gadget"> <Require feature="dynamic-height"/> </ModulePrefs> You will call the JavaScript function |
OpenSocial |
Fully supported |
flash |
Allows you to embed a Flash movie into your gadget. Format: <ModulePrefs title="My Gadget"> <Require feature="flash"/> </ModulePrefs> You will call the JavaScript function |
OpenSocial |
Fully supported |
gadget-directory |
Allows a gadget to specify details for its directory listing, such as the category in which the gadget should be listed. Format: <ModulePrefs title="My Gadget"> <Optional feature="gadget-directory"> <Param name="categories"> JIRA Charts </Param> </Optional> </ModulePrefs>
Because this feature is specific to Atlassian Gadgets, we recommend that you use |
Atlassian Gadgets |
サポート対象外 |
locked-domain |
|
OpenSocial |
Fully supported |
minimessage |
A MiniMessage is a temporary message displayed to users from within a gadget. Format: <ModulePrefs title="My Gadget"> <Require feature="minimessage"/> </ModulePrefs> See the OpenSocial |
OpenSocial |
Fully supported |
oauthpopup |
Manages popup windows for OAuth. See our detailed instructions on OAuth and the OpenSocial |
OpenSocial |
サポート対象外 |
opensocial-0.6 |
|
OpenSocial |
サポート対象外 |
opensocial-0.7 |
|
OpenSocial |
サポート対象外 |
opensocial-current |
|
OpenSocial |
サポート対象外 |
opensocial-reference |
|
OpenSocial |
サポート対象外 |
opensocial-templates |
|
OpenSocial |
Fully supported |
rpc |
Provides operations for making remote procedure calls for gadget-to-container, container-to-gadget, and gadget-to-gadget communication. Format: <ModulePrefs title="My Gadget"> <Require feature="rpc"/> </ModulePrefs> You need to specify "rpc" as a required feature if you are using the |
OpenSocial |
Fully supported |
setprefs |
Allows you to set the values for user preferences programmatically, without the user's direct participation. Format: <ModulePrefs title="My Gadget"> <Require feature="setprefs"/> </ModulePrefs> See the OpenSocial |
OpenSocial |
Fully supported |
settitle |
Allows you to set your gadget's title programmatically. Format: <ModulePrefs title="My Gadget"> <Require feature="settitle"/> </ModulePrefs> See the OpenSocial |
OpenSocial |
Not referenced |
skins |
Allows you to manage the skin of your gadget programmatically. Format: <ModulePrefs title="My Gadget"> <Require feature="skins"/> </ModulePrefs> |
OpenSocial |
Fully supported |
タブ |
Allows you to add a tabbed user interface to your gadget. Format: <ModulePrefs title="My Gadget"> <Require feature="tabs"/> </ModulePrefs> See the OpenSocial |
OpenSocial |
Partially supported |
views |
A view is a location in a container where a gadget is displayed. Different views have different characteristics. For example, a container might have a view that shows gadgets in a small format, and a view that shows gadgets in full page format. Atlassian Gadgets supports the following views: <ModulePrefs title="My Gadget"> <Require feature="views"/> </ModulePrefs> See the OpenSocial 部分的にサポート Atlassian Gadgets provides only partial support of the "views" feature. Only the Restricting edit permissions on your gadget preferences There is an Atlassian-specific extension to the |
OpenSocial |
サポート対象外 |
pubsub |
Allows your gadget to publish and subscrib to message channels. See the OpenSocial |
OpenSocial |
In the above table we show the level of support provided in Atlassian Gadgets for each feature:
<Require>
the feature. To use the feature in containers where it is available while still remaining compatible with Atlassian Gadgets, you must use the <Optional>
element to specify the feature, then test for the presence of the feature using the gadgets.util.hasFeature
function.In the above table we have also categorised the features as follows:
Creating your Gadget XML Specification
Using the Atlassian Gadgets JavaScript Framework
Writing an Atlassian Gadget
Gadgets and Dashboards Development Hub