Hi Christian,
thank you very much for advice.
Cheers,
Jaromír.
--
View this message in context:
http://qooxdoo.678.n2.nabble.com/Method-to-get-selected-ListItem-tp7585508p7585510.html
Sent from the qooxdoo mailing list archive at Nabble.com.
---
Hi Jaromír,
getSelection returns an array of the selected list items. Just access one
form the array and call the public API to get the label:
list.getSelection()[0].getLabel();
Cheers,
Chris
--
View this message in context:
http://qooxdoo.678.n2.nabble.com/Method-to-get-selected-ListItem-tp7
Hello,
I try to get the one selected item from List.
var list = new qx.ui.form.List(false);
for(var i=0; i < arrayData.length; i++){
item = new qx.ui.form.ListItem("No. " + arrayData[i], null, arrayData[i]);
list.add(item);
And this code return "qx.ui.form.ListItem[695-0]":
if(list.isSelection