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

Toggling an html context menu by group data attribute

$
0
0

@idekkers wrote:

HI

having a working html context menu for a group,
now I need to have different options in the menu, depending on an attribute of the group data.
the code I have now to attach the menu to the group is:

let myGroupContextMenu = $(go.HTMLInfo,{
show: showGroupContextMenu,
meinElement: groupContext
})

and
this.diagram.groupTemplate.contextMenu = myGroupContextMenu

is there a way to inform the HTML which options to show in the menu?
thanks

Posts: 3

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 7069

Trending Articles