How to Add contextmenu on button click please help
code:
$("Button",
{
alignment: go.Spot.TopRight,
click: function (e, button) {
// alert("cfdfd");
$(go.TextBlock, textStyle(),
{
margin: 8,
maxSize: new go.Size(160, NaN),
wrap: go.TextBlock.WrapFit,
editable: false,
}),
{
toolTip: // define a tooltip for each node that displays the color as text
$("ToolTip",
$(go.TextBlock, { margin: 4 },
new go.Binding("text", "text"))
),
contextMenu: partContextMenu// end of Adornment
}
} // this function is defined below
}