I am new to Cytoscape.js. I've managed to create a network. I'd like to change mouse cursor to pointer when mouse is over a node. Based on what I read, I should use the following code:
style: cytoscape.stylesheet()
.selector('node')
.css({
'content': 'data(name)',
'text-valign': 'center',
'color': 'white',
'text-outline-width': 2,
'text-outline-color': '#888',
'cursor': 'pointer'
})
//other code omitted
To my surprise, the cursor did not change. It stayed the same default cursor. What did I miss? Please help. Thanks.
mouseout
event fails to fire (happens easily in my quick test) then the cursor stays as a hand over the rest of your webpage until you go over another node and successfully get the end to fire when leaving the node. – Overexpose