Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

253
Visualizações
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
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda