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

97
Views
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 answers
Answer question

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 Report
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!