Gets a value indicating whether the item is selected.
Namespace: MindFusion.Common.UI
File: ListItem.js
JavaScript Copy Code |
---|
get selected() {} |
Boolean. true if the item is selected, otherwise false.
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 } |
JavaScript Pack Programmer's Guide | © 2024 MindFusion |