Quantcast
Channel: GoJS - Northwoods Software
Viewing all articles
Browse latest Browse all 6968

Diagram nodeTemplate define mouseDown handler

$
0
0

@cg_fd wrote:

Hey,

I want to setup a mouseDown handler for nodes within a diagram. I've set up the template using the following approach:

$(go.Node, 'Auto',
    {
        isActionable: true,
        actionDown: function () {
            //Dance like a ninja ;)
        }
    }
    $(go.Shape, 'Rectangle', {
        fill: '#FFF',
        width: 10,
        height: 10
    }),
    new go.Binding('location', 'latlong', calcDiagramLocation.bind(this, map))
);

But this approach has the effect, that the default behavior of selecting the node won't be executed. I simply want to add additional behavior.

Posts: 4

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 6968

Trending Articles