The container in which the consumer renders the context menu. This is an empty container with only the position set correctly. Could diff against content already present in the container using React, Preact or any other VDOM.
This is passed only if the consumer returned this in prior calls to this callback. Useful for Preact, where you need to provide the element within the container to diff against.
This callback is called to render context menu for elements with IDs like node, edge, panel.
The ID of the element which was clicked. Since, we have different callbacks for node, edge, panel, it is assumed that the type of the element is known before hand.
The container in which the consumer renders the context menu. This is an empty container with only the position set correctly. Could diff against content already present in the container using React, Preact or any other VDOM.
This is passed only if the consumer returned this in prior calls to this callback. Useful for Preact, where you need to provide the element within the container to diff against.
Generated using TypeDoc
This callback is called to render context menu for elements without IDs like workspace. Since, we have different callbacks for node, edge, panel, it is assumed that the type of the element is known before hand.