To include a web resource (such as custom CSS or JavaScript file) on the page every time Structure Widget is displayed, use |
Due to Atlassian SDK limitations, context-provided resources are not loaded in the Structure gadget on Dashboard or in Confluence. |
Use cases:
Sample snippet from atlassian-plugin.xml
:
<web-resource key="custom-field-resource" name="My Custom Field Web Resource"> <context>structure.widget</context> <resource type="download" name="custom-field-resource.js" location="js/myplugin/custom-field-resource.js"/> </web-resource> |