Quantcast
Channel: Northwoods Software - Latest topics
Viewing all articles
Browse latest Browse all 7422

Why is findNodesInto undefined in binding?

$
0
0

@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

Read full topic


Viewing all articles
Browse latest Browse all 7422

Trending Articles