Skip to content

How to do a pop-up using node js and take inputs to use in the function. We wrote an api want to call it from this tab #1

@achyuthe

Description

@achyuthe
export default {
    // id for plugin
    id: "force complete task",
    // location where plugin goes and get the location name from camunda document
    pluginPoint: "cockpit.processInstance.runtime.action",
    // what to render, specific objects that you can pass into render function to use
    priority: 10,
    render: (node, { api, processInstanceId }) => {
        // create the actual button with an image inside + hard-wired styling
        node.innerHTML = `<button class="btn btn-default action-button" style="width: 40px; margin-top: 5px;"></button>`;
        // onclick function for our button

        node.onclick = function() {
//need code for pop-up window and accept user input and use them
            });
        }
    },

};

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions