Search
ListItem.contentElement Property
See Also
 






Gets a reference to the item's content element.

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

 Syntax

JavaScript  Copy Code

get contentElement() {}

 Property Value

An HTMLElement.

 Example

The following example uses the contentElement property of a ListItem to set its opacity to 0.

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 );
item.contentElement.style.opacity = "0";

listView.items.add(item);

 See Also