Hi I'm trying to show all qtips I have in my cytoscape.js graph when a button is clicked. Some of my elements are hidden so I need to check that they have the 'show' class first before trying to display the qtip. Here is my code
cy.$('node[type = "net"]').forEach(function( ele ) {
if (ele.hasClass('show')) {
console.log(ele.id());
ele.qtip('toggle',true);
// i have also tried ele.qtip('show');
}
});
However I am getting the following error in my browser console.
'Uncaught TypeError: Cannot read property 'set' of undefined: cytoscape-qtip.js:268'
thanks.