Appends a submenu that contains callback items. The return value is the menu id generated for the new submenu item.