It is as easy as:
loadNewData(newData) {
myCombo.removeAll();
for (var i = 0; i < newData.length; i++) {
myCombo.add(new qx.ui.form.ListItem(newData[i][0], newData[i][1]));
}
}
supposing newData is an array of arrays.
Aaron Cooper-2 wrote:
>
> Would anyone happen to have an example of how add list items to a combobox
> based on data returned from an AJAX call?
>
--
View this message in context:
http://www.nabble.com/Combo-Select-boxes-made-from-data-tf2640182.html#a7374288
Sent from the qooxdoo-devel mailing list archive at Nabble.com.
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel