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

103
Visualizações
Cytoscape js + edgeHandles add weight property to edges

I can't for the life of me figure out how to add a new data property for edges dynamically created by the user. I'd like to add a weight property to every edge created, being a huge newbie I'm struggling to do so. I'm having a hunch that the edgeParams function of edgeHandles might be the solution, yet after hours of googling, I still unable to grasp an understanding on how that might work. Any help would be greatly appreciated.

Thanks in advance

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

Alright I managed it at last, for anyone in a similiar situation - use the edgeParams: function as follows.

          edgeParams: function( sourceNode, targetNode )
      {
        return {
              data: { weight: 75 },
             }
       },
about 4 years ago · Juan Pablo Isaza Relatório
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