Hi @ all!
Again, I´m pretty new in qooxdoo development and have a stupid but really
important question.
I have a List with selectionmode one and want to get the name of the selected
Listitem.
My code looks like this:
var oneList = new qx.ui.form.List();
oneList.set({ height: 380, width: 250, selectionMode : "one" });
var item;
for( var i=1; i<=25; i++ )
{
item = new qx.ui.form.ListItem("Item No " + i,
"icon/16/places/folder.png");
oneList.add(item);
// Pre-Select "Item No 1"
if (i==1) {
oneList.setSelection([item]);
}
};
desktop.add(oneList, {left: 200, top: 100});
oneList.addListener("changeSelection", function(e){
alert("Selected item:" + oneList.getSelection() ??????????);
In this Alert I want to get the name of the selected item displayed. When I do
this like I wrote above,
then I only get stuff like this: Selected item: qx.form.Listitem[146]
But I want so see the name in the alert like: Selected item: Item No x
I don't know how to do this simple stuff! It´s quite annoying! I tought its as
easy as a textfield. I tought that there is a method like
Textfield.getValue() or .getText() to retrieve the name.
}, this);
Please help!
Thank you a lot!
Hari
------------------------------------------------------------------------------
This SF.net email is sponsored by
Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel