Function PopupMenu.addSubmenuItem
Adds an item that will act as a submenu of the parent PopupMenu
node when clicked. The submenu
argument is the name of the child PopupMenu
node that will be shown when the item is clicked.
An id
can optionally be provided. If no id
is provided, one will be created from the index.