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

203
Views
Cambiar el color del borde en go js

Me gustaría cambiar el borde negro a verde cuando se llama a mi función de cambio de color al hacer clic

Me gustaría saber si alguien me puede ayudar a encontrar una solución porque lamentablemente estoy atascado en ella.

desde ya agradezco tu respuesta ver proyecto

 var commandsAdornment = $( "ContextMenu", $( go.Panel, "Auto", $(go.Shape, { fill: null, stroke: "deepskyblue", strokeWidth: 2, shadowVisible: false, }), $(go.Placeholder) ), $( go.Panel, "Horizontal", { defaultStretch: go.GraphObject.Vertical }, $( "Button", $(go.Shape, { geometryString: "M0 0 M3 2 L3 0 7 0 7 10 3 10 3 8 M5 6 7 4 9 6 M10 0", fill: "", margin: 3, }), { click: changeColor }, ) ) );
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Podría tener algo como esto como un controlador de eventos "ContextMenuButton" GraphObject.click :

 { click: (e, button) => { const node = button.part.adornedPart; const shape = node.findObject("SHAPE"); if (shape) { e.diagram.commit(diag => shape.stroke = "green"); } } }

Por supuesto, esto supone que ha nombrado la Forma que desea modificar con la propiedad { name: "SHAPE" } en su plantilla de nodo.

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!