Button -> Radius

Hi ,

  1. How can i set the button border radius and border color etc.
  2. Setting multiple colors for the connecting nodes…something like http://gojs.net/latest/samples/PERT.html

You can see how buttons are defined by examining the code in http://gojs.net/latest/extensions/Buttons.js.

So then you will know either how to modify a standard button, or how to copy/rename/adapt the code for your own purposes.

Buttons by default are simple "Rectangle"s, but you can replace the Shape.figure for the button border to be a “RoundedRectangle” if you like. If the rounded corner is not to your liking you can set its Shape.parameter1 property.

For example, if you wanted to customize the appearance of the background Shape of a button:

            "ButtonBorder.fill": "yellow",
            "ButtonBorder.stroke": "orange"

I’m not sure what you mean by “multiple colors for the connecting nodes”. I hope you have read pages such as http://gojs.net/latest/intro/dataBinding.html and looked at samples such as http://gojs.net/latest/samples/basic.html.