MenuItem.ImageUrl

Syntax

ImageUrl: String

Description

The ImageUrl property sets the path to the image for the menu item.

Comments

Property is relevant if:

Example

To execute the example, the HTML page must contain the Menu component with the child item named item1 (seep; Example of Creating the Menu Component). The icon.png image must be located in the "img" folder of the root directory. Set the image for the menu item with the Item1 name:

item1.setImageUrl("img/icon.png");

The image is set for the menu item with the  Item1 name after an example execution:

See also:

MenuItem