Hi,
Can we create different Context Menu for different shape based on business condition ?
I did not find any working example on GoJS site.
Can you please help ?
Thanks,
Abbasi
Hi,
Can we create different Context Menu for different shape based on business condition ?
I did not find any working example on GoJS site.
Can you please help ?
Thanks,
Abbasi
Please read https://gojs.net/latest/intro/contextmenus.html. It describes how you can make and customize context menus constructed either using GoJS objects or using HTML elements. That page also has links to several examples.
Normally when defining a context menu as a GoJS Adornment, one uses data Bindings on the visible property of each “ContextMenuButton” to control each button’s visibility.
Normally when defining a context menu as HTML elements, one’s HTMLInfo.show function will set each button element’s style.display
property to “block” or “none”, as desired.