Search
ListItem Constructor
See Also
 






Initializes a new instance of the ListItem class.

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

 Syntax

JavaScript  Copy Code

function ListItem ([title])

 Parameters

title
Optional.

String. The display text of this item.

 Example

The following example creates a new ListItem and adds it to the items collection of a ListView control.

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.template = generateTemplate("h1.png", item.title, true );
listView.items.add(item);

 See Also