Search
ListItem.interactive Property
See Also
 






Gets or sets a value indicating whether drag and drop operations are allowed for this ListItem.

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

 Syntax

JavaScript  Copy Code

get interactive() {}

 Property Value

Boolean. true if drag and drop operations are allowed, otherwise false.

 Example

The following example creates a new ListItem and adds it to the items collection of a ListView control. It disables drag and drop for this item by setting interactive to false.

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

listView.items.add(item);

 See Also