MenuItem.insertItem

Syntax

insertItem (value, index)

Parameters

value. Menu item: text, HTML layout, DOM node or a descendant of PP.Ui.MenuItem or PP.Ui.ActiveMenuItem

index. Index of the inserted item.

Description

The insertItem method inserts a menu item to the specified position.

Example

The example of method use is given in description of the ActiveMenuItem constructor.

See also:

MenuItem