Hey,

just took a look at the infrastructure and have a idea how I would get that 
done. 

You need a custom list item which could extend from list item but you can not 
change the original label property as this is defined as a String and not an 
array of strings. So either you add a second property and use that or you don’t 
extend from list item and create your own.
But the select box requests some API to be existing like getLabel, getIcon and 
getRich. Make sure you have these API on your custom widget to make it work.

Regards,
Martin

> Am 26.03.2015 um 17:56 schrieb Tom Saddul <tcsad...@yahoo.com>:
> 
> Been trying to find an example of how to create a ListItem with two (2)
> columns for a SelectBox control but my search and trials are so far in vain. 
> I have seen the ComboTable contrib but I just need to be able to add an item
> (string array) to a SelectBox like below:
> 
>                    var selectBox = new qx.ui.form.SelectBox();
>                    selectBox.add(new CustomListItem(["Item 0,0", "Item
> 1,0"]));  // add first row
>                    selectBox.add(new CustomListItem(["Item 1,1", "Item
> 1,1"]));  // add another row
> 
> Any help is greatly appreciated.
> 
> 
> 
> --
> View this message in context: 
> http://qooxdoo.678.n2.nabble.com/Two-2-column-ListItem-for-SelectBox-tp7586987.html
> Sent from the qooxdoo mailing list archive at Nabble.com.
> 
> ------------------------------------------------------------------------------
> Dive into the World of Parallel Programming The Go Parallel Website, sponsored
> by Intel and developed in partnership with Slashdot Media, is your hub for all
> things parallel software development, from weekly thought leadership blogs to
> news, videos, case studies, tutorials and more. Take a look and join the 
> conversation now. http://goparallel.sourceforge.net/
> _______________________________________________
> qooxdoo-devel mailing list
> qooxdoo-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to