Initializes a new instance of the ListView class.
Namespace: MindFusion.Common.UI
File: ListView.js
JavaScript Copy Code |
---|
function ListView ([element]) |
HTMLElement. The control's associated Dom element.
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")); var item = new ui.ListItem(); listView.items.add(item); |