Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

247
Views
vis network double click edit the data

I am trying to create a network graph dynamically using the vis.js library. When I create each node and edge, I want to double click in them and show a pop up window to enter some extra information. I have made this, but my problem is when I double click again in the same edge/node the information does not store and I lost them. Can you help me with this? I want to keep my previous data and edit the data if the user wants. Thank you! I have use this link for my stimulation vis network stimulation

I have add this function to achieve the double click

enter code here document.getElementById("eventSpanHeading").innerText = "doubleClick event:";
      if(data.nodes.length){
       
        document.getElementById("node-operation").innerText = "Add Node Data";
        editNode(data,clearNodePopUp,callback);
        
        
      }
      if(data.edges.length){
        document.getElementById("edge-operation").innerText = "Add Edge Data";
        editEdgeWithoutDrag(data,clearEdgePopUp,callback); 
       
       
      }
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!