Submenu of context menu


Anyone know if its possible to do submenus for a context menu?

I have attached an example picture.

It probably would be easiest to implement that context menu in HTML, rather than generalizing the ContextMenuTool to support a stack of context menus.

Ah ok. I could do it using jquery from the example I provided here, but I haven’t figured out how to isolate the jquery context menu to the diagram yet.