Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cytoscape js qtip on right click

I am trying to show qtip on the right click event of the nodes. I already did it on mouseover or click events and they worked. However I can not make it work on right click.

position: {
    my: 'top left',
    at: 'bottom right',
    adjust: { method: 'none' }
},
style: {
    classes: 'qtip-rounded'
},
show: {
    event: 'mouseover'
}

Any guesses? I also checked this: http://qtip2.com/guides#events.rightclick It did not work for me.

like image 204
rasekoli Avatar asked Oct 08 '15 10:10

rasekoli


Video Answer


1 Answers

You can't use DOM events like the qtip docs suggest, as graph elements are not HTMLElements. You should use Cytoscape events.

cxttap : http://js.cytoscape.org/#events/user-input-device-events

like image 122
maxkfranz Avatar answered Jan 02 '23 11:01

maxkfranz