not able to find button inside the selected node , ( i have added button inside node) . Any other way to find ?
Sample node template :
var nodeTemplate =
goJ(go.Node, "Vertical",
{
zOrder:100
},
new go.Binding("location", "loc"),
{ isShadowed: true,shadowColor:"#cccccc",shadowBlur:5},
{ selectionObjectName: "BODY" },
goJ(go.Panel, "Auto",
{ name: "BODY"},
goJ(go.Shape, "RoundedRectangle",
{ fill: "transparent" , stroke: "#67D5E0", width:200, height:54},
goJ(go.TextBlock,{ font:'12px roboto', textAlign: "center", wrap: go.TextBlock.WrapFit, width:180,margin: new go.Margin(2, 1, 22, 1)}, new go.Binding("text", "value",scope.getNodeText)),
goJ("Button",new go.Binding("location", "loc"),{margin:1,alignment: new go.Spot(0, 1),cursor: "pointer"},
goJ(go.Picture,{source: "images/add-plus-blue.png"}),{
click: scope.tets
}
)
)