Search
ListItem.imageSrc Property
See Also
 






Gets or sets the URL of the image displayed by this item.

Namespace: MindFusion.Common.UI
File: ListItem.js

 Syntax

JavaScript  Copy Code

get imageSrc() {}

 Property Value

String. The image URL.

 Example

The following example creates a new ListItem and adds it to the items collection of a ListView control. It sets the URL of the image used for this ListItem.

JavaScript  Copy Code

listView = new ui.ListView(document.getElementById("listView"));
listView.width = listView.height = ui.Unit.percentage(100);

var item = new ui.ListItem();
item.title = "Armillaria Ponderosa";
item.imageSrc = "images\controls\blue_arrow.png";

listView.items.add(item);

 See Also