Fill the context menu and register it with configuration, which will show it for the node and edge selectors. The extension itself is already registered through the plain HTML/JS import in index.html, which makes available cy.contextMenus().
Static
addStatic
logAdd a logging wrapper to a context menu command.
the context menu command to wrap if it isn't already wrapped
a function that describes the element
context menu for nodes and edges