I've been trying using popper extension of cytoscape.js, starting with the code I found on the web in order to do it, at https://codepen.io/rbogard/pen/mdyRPew
It woks quite well when initializing a graph and calling the popper creation when the rendered graph is ready for the user.
However I would like a popper to be created each time I'm adding a new node to the graph.
What I did is to call exactly the same function than the one call on cy.ready, which works perfectly well, on the event consisting to add a graph element.
The function makePopper is effectively called, however no popper appears when putting the mouse over the new added element.
cy.ready(function() {
cy.elements().forEach(function(ele) {
makePopper(ele);
});
});
cy.on('add', function(ev) {
log("call poper")
makePopper(ev.target);
})
I've been searching any exemple related to what I want to do, without success.
So I would like to know if someone already tried this, and has a solution for the dynamic update of poppers each time a new element is added to the graph.
Thanks in advance.