Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

93
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda