Right click Context Menu with sub menus

I want to add right click context menu with sub menus as shown below. Is it possible with gojs contextmenubutton

It would not be easy to customize ContextMenuTool to support that, but it’s possible.

I think it would be easier to implement your context menus in HTML.