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

Reimplementing GoJS context menu in HTML

$
0
0

@nagesh222 wrote:

Hi previously am using gojs Context Menu Button now i need to converted this code into Html context menu using gojs...

Please help me how to do it...

var nodeMenu = // context menu for each Node

  $(go.Adornment, "Vertical",
   $("ContextMenuButton",
     $(go.TextBlock, {margin:5,width:150,height:20,text:"Connection",textAlign:"left"}),
     { click:function(e,obj){ RightClick(obj) }}),
    $("ContextMenuButton",
      $(go.TextBlock, {margin:5,width:150,height:20,text:"Tag Mapping",textAlign:"left"}),
      { click: function(e,obj){ TagmappingMenu(obj) } })

  );

 
   var nodeConfigMenu =  // context menu for each Node
   $(go.Adornment, "Vertical",
  
    $("ContextMenuButton",
      $(go.TextBlock, {margin:5,width:150,height:20,text:"Tag Mapping",textAlign:"left"}),
      { click:function(e,obj){ TagmappingMenu(obj) }}),
    $("ContextMenuButton",{background: "white"},
      $(go.TextBlock, {margin:5,width:150,height:20,text:"Config",textAlign:"left"}),
      { click:function(e,obj){ Config(obj) } })
     
  );

  var nodeDirectorMenu =  // context menu for each Node
   $(go.Adornment, "Vertical",
    $("ContextMenuButton",
     $(go.TextBlock, {margin:5,width:150,height:20,text:"Connection",textAlign:"left"}),
     { click:function(e,obj){ RightClick(obj) }}),
    $("ContextMenuButton",
      $(go.TextBlock, {margin:5,width:150,height:20,text:"Tag Mapping",textAlign:"left"}),
      { click:function(e,obj){ TagmappingMenu(obj) }}),
    $("ContextMenuButton",{background: "white"},
      $(go.TextBlock, {margin:5,width:150,height:20,text:"Config",textAlign:"left"}),
      { click:function(e,obj){ Config(obj) } })
     
  );

Posts: 5

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 7069

Trending Articles