Menu.addItem

Syntax

addItem (value);

Parameters

value. Child menu item: the text, HTML layout, DOM node or an delegate of the Control class, particularly an instance of the MenuItem class.

Description

The addItem method adds a child item to the menu.

Comments

Method is used when using the static component creation. The title and a separator can be added to the menu using the method.

Example

An example of method use is given on the page Example of creating the Menu component.

See also:

Menu