ImageUrl: String
The ImageUrl property sets the path to the image for the menu item.
Property is relevant if:
The value of the Checked propety is not set.
The values for the ColumnIndex and RowIndex properties, determining icon coordinates in the sprite, are not specified.
The Menu.ShowIcons property is set to true.
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: