.plugins.atlassian-clientside-extensions-demo.3.0.0-m01-5ba70bd-lt2pg0b9.source-code.demo-web-page-extension.js Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of atlassian-clientside-extensions-demo Show documentation
Show all versions of atlassian-clientside-extensions-demo Show documentation
Demonstrates how product developers and plugin developers can make use of the Client-side Extensions APIs.
/* eslint-env amd */
/* eslint-disable import/no-dynamic-require, import/no-amd, node/no-missing-require */
require(['@atlassian/clientside-extensions-page-bootstrapper'], function demoWebPageExtension(pageBootstrapper) {
function pageFactory() {
return {
type: 'page',
onAction(node) {
node.innerHTML = 'Hi there!';
},
};
}
pageBootstrapper.registerPage('com.atlassian.plugins.atlassian-clientside-extensions-demo:myExtensionKey', pageFactory);
});
© 2015 - 2025 Weber Informatics LLC | Privacy Policy