You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can get the options array from app.canvas.getCanvasMenuOptions(). It has two items, with the content "Add Node" and "Add Group". "Add Node" has sub-menus, and its property "has_submenus" is "true". How do I access the sub-menus of "Add-Node" and the sub-menus of each of those?
I expected that the "Add Node" item would have a "submenu" property, but as far as I can tell, it only has two: "content, has_submenu" submenu and submenus are undefined.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I can get the options array from app.canvas.getCanvasMenuOptions(). It has two items, with the content "Add Node" and "Add Group". "Add Node" has sub-menus, and its property "has_submenus" is "true". How do I access the sub-menus of "Add-Node" and the sub-menus of each of those?
I expected that the "Add Node" item would have a "submenu" property, but as far as I can tell, it only has two: "content, has_submenu" submenu and submenus are undefined.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions