Nuxeo / DAM / PAM / ECM specialistsContact
Home/Insights/Nuxeo
Insights

How to add custom logic to existing Nuxeo Web UI buttons

Jul 14, 20261 min read

How to add custom logic to existing Nuxeo Web UI buttons

NUXEO Consultants - IMPLEMENTING BULK METADATA EDIT IN NUXEO, Maretha

How to add custom logic to existing Nuxeo Web UI buttons

The first problem is that there are already some functions attached to the click event of the button. Adding a new event, does not guarantee it will run first.

1. removeEventListener() does not help, as we don't have access to the function pointer to be removed.

2. cloneNode() you can clone your button, hide it and replace it with the cloneButton adding a custom logic in the cloneButton click event function, but the original button is not static, it has fields and styles updated by Polymer (and we need them).

const node = document.getElementById("demo"); const clone = node.cloneNode(true); document.body.appendChild(clone);

Read full article on Medium

← All insights

Keep reading

Related insights

Talk to a Maretha Consultant

Tell us what you're struggling with, and we'll tell you how we can help you.

Talk to us