Search
ListItem.selected Property
See Also
 






Gets a value indicating whether the item is selected.

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

 Syntax

JavaScript  Copy Code

get selected() {}

 Property Value

Boolean. true if the item is selected, otherwise false.

 Example

The follo:wing code checks if the first ListItem in a ListView is selected

JavaScript  Copy Code
// check if the first list item is selected
var firstItem = listView.items.items()[0];
if (firstItem.selected)
{
    //do something
}

 See Also