All Downloads are FREE. Search and download functionalities are using the official Maven repository.

.plugins.atlassian-clientside-extensions-demo.3.0.0-m01-5ba70bd-lt2pg0b9.source-code.button-plugin.js Maven / Gradle / Ivy

Go to download

Demonstrates how product developers and plugin developers can make use of the Client-side Extensions APIs.

There is a newer version: 4.0.0-jakarta-m001-6cdaaa6-m5gf9rqt
Show newest version
/* 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