Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

G6VP Context Menu Editing #148

Closed
RackweLLizm opened this issue Mar 6, 2023 · 1 comment
Closed

G6VP Context Menu Editing #148

RackweLLizm opened this issue Mar 6, 2023 · 1 comment

Comments

@RackweLLizm
Copy link
Contributor

I want to add edits on the Context Menu and remove the existing context menu when right clicking on the G6VP nodes and edges. Can you give some advice for this?

@RackweLLizm
Copy link
Contributor Author

For those who have the same problem, remove ContextMenu from Assets. I solved the problem by setting GraphinContext menu as children to GISDK. GraphinContextMenu is component of graphin.

 <GISDK
          ref={graphRef as any}
          /*
                 // @ts-ignore */
          config={GI_PROJECT_CONFIG}
          /*
               // @ts-ignore */
          assets={ASSETS}
          /*
               // @ts-ignore */
          services={services}
        >
          <GraphinContextMenu />

        </GISDK>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant