.plugins.atlassian-clientside-extensions-demo.3.0.0-m01-5ba70bd-lt2pg0b9.source-code.button-plugin.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-disable*/
(function () {
function buttonPluginFactory(pluginAPI) {
var timesClicked = 0;
function getLabel() {
return 'Button clicked ' + timesClicked + ' times';
}
return {
type: 'button',
onAction: function onAction() {
timesClicked++;
pluginAPI.updateAttributes({
label: getLabel(),
});
},
label: getLabel(),
};
}
require(['@atlassian/clientside-extensions-registry'], function (registry) {
registry.registerExtension('com.atlassian.plugins.atlassian-clientside-extensions-demo:button-plugin-js', buttonPluginFactory, {
location: 'reff.old-web-items-location',
label: 'loading…',
weight: 9001,
});
});
})();
© 2015 - 2025 Weber Informatics LLC | Privacy Policy