Just pass an array with the labels.

then sb.addListener("changeSelection", function(evt){
alert(evt.getData()); // Index
});
________________________________________
Von: slah [[email protected]]
Gesendet: Freitag, 11. Oktober 2013 19:29
An: [email protected]
Betreff: Re: [qooxdoo-devel] qx mobile: enable to use selectBox inside  popup   
window

Hello,
suppose I've some data like this:
var data = [{"id" : 1, "label" : "English"}, {"id" : 2, "label" :
"Français"}];

how to display "label" in the SelectBox and how to retrieve "id" when an
item is selected.

Best regards,



--
View this message in context: 
http://qooxdoo.678.n2.nabble.com/qx-mobile-enable-to-use-selectBox-inside-popup-window-tp7584753p7584759.html
Sent from the qooxdoo mailing list archive at Nabble.com.

------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60134071&iu=/4140/ostg.clktrk
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60134071&iu=/4140/ostg.clktrk
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to