MenuItem.setSubmenu

Sets or replaces the menu item's submenu, or removes it when a NULL submenu is passed.

class MenuItem
void
setSubmenu

Parameters

submenu Widget

the submenu, or NULL. [allow-none]

Meta