MenuItem.CloseOnChecked

Syntax

CloseOnChecked: Boolean

Description

The CloseOnChecked property determines whether the menu is closed on selecting a specified item.

Comments

The menu is not closed when selecting the item if the False value is set for the property. The True value is set by default.

Example

To execute the example, the HTML page must contain the Menu component with a child item named item2 (see Example of Creating the Menu Component). Use the CloseOnChecked property to avoid closing the menu on selection of the element named item2:

item2.setCloseOnChecked(false);

The menu is not closed when selecting the Item2 item after an example execution.

See also:

MenuItem