Toggling an html context menu by group data attribute

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

What does your showGroupContextMenu function do? That is where you can decide what to show, making arbitrary modifications to your HTML.

I suppose if what you want is sufficiently different, you could use two (or more) different HTML panels.

found it

using the show function I have access to the obj.