MenuItem.setShowIcon

Syntax

setShowIcon (value);

Parameters

value. Determines whether the image is hidden. If the False value is set for the property, the image is hidden. By default it is set to True

Description

The setShowIcon method determines whether to show an icon for menu item.

Comments

Use the Menu.ShowIcons property to indicate if icons are displayed for all the menu items.

Example

To execute the example, the HTML page must contain the Menu component named menu1 that includes several child items, with an image defined for each of the items (see example for the ImageList property). Hide an image of the first (after title) menu item:

menu1.getItems()[1].setShowIcon(false);

Image of the first menu item is hidden after an example execution:

See also:

MenuItem