@marin wrote:
I want to write the number of links a node is connected to.
I've tried to do this to begin with:$(go.Node, 'Spot', $(go.Shape, shapes.node, nodeShapeSettings(fillColor)), $(go.TextBlock, {editable: false, margin: 8, visible: true, alignment: go.Spot.Left}, new go.Binding('text', '', function (data, node) { console.log(node.findLinksInto) return 0; })), getPort(portTypes.input), getPort(portTypes.output), $(go.TextBlock, {editable: false, margin: 8, visible: false}, new go.Binding('text', 'value')), supportedEvents()
but the console prints undefined... I'm curious as to why?
Posts: 7
Participants: 2