Menu.removeItem

Syntax

removeItem (item: PP.Ui.MenuItem, withDispose)

Parameters

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).

Description

The removeItem method removes a menu item.

Example

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:

Menu