Search
ListItem.enabled Property
See Also
 






Gets or sets a value indicating whether user interactions are allowed for this item.

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

 Syntax

JavaScript  Copy Code

get enabled() {}

 Property Value

Boolean. true if user interactions are allowed, otherwise false.

 Example

The following example creates a new ListItem, enables it 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.enabled = true;

listView.items.add(item);

 See Also