removeItem (item: PP.Ui.MenuItem, withDispose)
item. Menu item to be deleted.
withDispose. It determines whether the menu item must be deleted (True) or removed from the list of items (False).
The removeItem method removes a menu item.
To execute the example, the page must contain the Menu component named menu1 (see Menu.ImageList). The itemWithHotKey identifier is set for one of the menu items. Remove the item:
removeItem(menu1.getMenuItemById("itemWithHotKey"));
See also: