MenuItem.IsHovered

Syntax

IsHovered: Boolean

Description

The IsHovered property determines whether the menu item is displayed on hovering the cursor over it.

Comments

If the property is set to True, the menu item is displayed as if the cursor hovers over it. The False value is set by default.

Example

To execute the example, the HTML page must contain the Menu component with the child item named item1 (see Example of Creating the Menu Component). Change the display of the item:

item1.setIsHovered(true);

After executing the example the Menu component looks as follows:

See also:

MenuItem