Hiding context menu based on node property

I have multiple context menus (Link, diagram and nodes).
My nodes have a property named type, and i want to display or hide / enable or disable the context menu for nodes based on that property.

Use Binding(s) to affect the appearance of the context menu buttons, with the source being that property named “type”.

If you see the examples of context menus in the samples, most of them have bindings of GraphObject.visible. Basic GoJS Sample. Adornments are normally data bound to the same data as the adorned Part.