How to access element node data outside cy function? and here is my code :
function cytoFunc(myJson){
var cy = window.cy = cytoscape({
container: document.getElementById('cy'),
// style
// elements
}); // end of cy
cy.$('node').qtip({
content: 'I want to insert element data here',
position: {
my: 'left center',
at: 'bottom center'
},
style: {
classes: 'qtip-bootstrap',
tip: {
width: 16,
height: 8
}
}
}); // end of cy.qtip
} // end of cytofunc