iVis-at-Bilkent / cytoscape.js-context-menus

A Cytoscape.js extension to provide context menu around elements and core instance
MIT License
86 stars 41 forks source link

manual trigger for showing/closing cxtMenu? #54

Closed alhuber1502 closed 3 years ago

alhuber1502 commented 3 years ago

I'm trying to use cytoscape.js-context-menus with the edgehandles extensions and use the events defined in the latter to trigger UI options.

Is it possible to simply hide/show cytoscape.js-context-menus, like

contextMenu = cy.contextMenus( options );
...
contextMenu.show(); or
contextMenu.hide();

and still get the selector-based options defined in the contextMenu options?

Thanks!

mltn123 commented 2 years ago

DId you ever find a solution for that particular issue?

alhuber1502 commented 2 years ago

Sadly no and I didn't use the extension in the end.