Hello,
Anyone know how i can Figure out with context menu button was clicked?
if it helps the following is an example of a context menu button:
var mycontext = graphObjectMake(go.Adornment, “Vertical”,
graphObjectMake(“ContextMenuButton”,
{
width:220,
height:25
},
graphObjectMake(go.TextBlock,
{
text: “My menu button”
}),
{
click: function(e,obj)
{
//do something here to get the information on which button was clicked
}
}
)
);
Thanks!