You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been trying to get some help with a particular functionality of vis.js + Angular 9 via this quesiton on Stack Overflow, but to no avail - not a single answer and very little interest. I'm not sure if this amounts to a feature request and I hate to disrespect the rules of posting issues, but I have searched repositories, documentation, source code, etc. and I'm still stuck. If anyone here could point me to a place where I can find some hints, I would greatly appreciate it.
Here's the problem, reposted from Stack:
I am using the network widget of vis.js via ngx-vis in an Angular 9 application. My goal is to trigger drawing an edge from a specific node by selecting an option from a context menu. Thus, one would right-click on Node A, select "Add edge", after which the edge has one end already connected to Node A and all the user needs to do is to click the target node. I am using ngx-contextmenu to get the node-specific context menu. This action triggers a method with the following code: this.visNetworkService.addEdgeMode(this.visNetwork);
which allows the user to add one edge, but they have to select both the start and end node, which defeats the purpose of having this action triggered from a context menu on a specific node. Is there a way to programmatically "click" on the node (I can get its position) and get the desired behavior?
The text was updated successfully, but these errors were encountered:
Currently tackling the same use-case in React. Any help here would be appreciated. Able to show a context menu but just unable to set the controlEdge object for the edge to start automatically. Any workarounds for this? Or any other approaches?
I've been trying to get some help with a particular functionality of vis.js + Angular 9 via this quesiton on Stack Overflow, but to no avail - not a single answer and very little interest. I'm not sure if this amounts to a feature request and I hate to disrespect the rules of posting issues, but I have searched repositories, documentation, source code, etc. and I'm still stuck. If anyone here could point me to a place where I can find some hints, I would greatly appreciate it.
Here's the problem, reposted from Stack:
I am using the network widget of vis.js via ngx-vis in an Angular 9 application. My goal is to trigger drawing an edge from a specific node by selecting an option from a context menu. Thus, one would right-click on Node A, select "Add edge", after which the edge has one end already connected to Node A and all the user needs to do is to click the target node. I am using ngx-contextmenu to get the node-specific context menu. This action triggers a method with the following code:
this.visNetworkService.addEdgeMode(this.visNetwork);
which allows the user to add one edge, but they have to select both the start and end node, which defeats the purpose of having this action triggered from a context menu on a specific node. Is there a way to programmatically "click" on the node (I can get its position) and get the desired behavior?
The text was updated successfully, but these errors were encountered: