Search
ListView Constructor
See Also
 






Initializes a new instance of the ListView class.

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

 Syntax

JavaScript  Copy Code

function ListView ([element])

 Parameters

element
Optional.

HTMLElement. The control's associated Dom element.

 Example

The following code creates a new instance of the ListView class and adds one ListItem to it.

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.visible = false;

listView.items.add(item);

 See Also