Gets a value indicating whether the item is selected.
Namespace: MindFusion.Common.UI
File: ListItem.js
SyntaxJavaScript
Copy Code
|
|---|
get selected() {} |
Boolean. true if the item is selected, otherwise false.
ExampleThe 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