Search
ListContainer.acceptDrop Property
See Also
 






Gets or sets the ListItem instance that can be dropped.

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

 Syntax

JavaScript  Copy Code

get acceptDrop() {}

 Property Value

ListItem. A ListItem instance.

 Example

The following code creates a ListView, adds a ListItem to it and sests it as a value of the acceptDrop property:

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);
listView.acceptDrop = item;

 See Also