Apparently when we cleaned up the sample we took away the ability to specify the text to be shown in the Start and the End kinds of nodes.
Basically you just need to add a Binding on the TextBlock.text property. If you assume that the property on the node data object is named “text” as your example uses, the template would include:
$(go.TextBlock, "End",
{ margin: 5, font: "bold 11pt Helvetica, Arial, sans-serif", stroke: lightText },
new go.Binding("text"))
If the text were user-editable, because editable: true
were included in the initialization of the TextBlock, then you’d want to do something like in the other templates of that sample:
$(go.TextBlock, "End",
{ margin: 5, font: "bold 11pt Helvetica, Arial, sans-serif", stroke: lightText, editable: true },
new go.Binding("text").makeTwoWay())
We’ll update the http://gojs.net/latest/samples/flowchart.html sample for the next release. Thanks for pointing out the missing feature in the sample.