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

Context menu support #14

Open
saskaale opened this issue Apr 25, 2018 · 0 comments
Open

Context menu support #14

saskaale opened this issue Apr 25, 2018 · 0 comments

Comments

@saskaale
Copy link
Member

Write example for support context menu.

Basic iIde how to make is style div element to look like browser context menu.
Once user would right-click on the graph there would be call for the find() method. for nearby area (let's say 10px) If the area contains the node, look if the node has property for context menu, if yes then show the context menu with specified context.

At the beginning I'd start with the raw html ( string / element ) as parameter to the context menu context.

e.g.:

nodes = [{
label: "node_1
},
{
label: "node_with_context,
contextMenu: HTML_STRING_or_HTML_ELEMENT
},
]

Anadroid added a commit to Anadroid/ccNetViz that referenced this issue May 14, 2018
saskaale pushed a commit that referenced this issue Aug 6, 2018
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