ActiveMenuItem Constructor

Syntax

ActiveMenuItem (settings);

Parameters

settings. JSON object that contains values of class properties.

Description

The ActiveMenuItem constructor creates an instance of the ActiveMenuItem class.

Example

To execute the example, the page must contain Menu component named menu (see Example of creating the Menu component). Add a menu item: that is, an instance of the ActiveMenuItem class:

menu.insertItem(new PP.Ui.ActiveMenuItem(

{

    Content: "Active menu item"

}), 1)

After executing the example a new item named Active Menu Item is placed on the first position in the menu. The item is not highlighted on hovering. Clicking the item does not close the menu.

ActiveMenuItem