Search
ListItem Class
See Also
 






Represents an item in a ListContainer control.

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

 Syntax

JavaScript  Copy Code

// class
ListItem.prototype = {}

 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);

 Inheritance Hierarchy

MindFusion.Common.UI.TemplatedItem
    MindFusion.Common.UI.ListItem
        MindFusion.Common.UI.TabPage
        MindFusion.Common.UI.ToolStripItem
        MindFusion.Common.UI.TreeNode

 See Also