Hi,

I'm having a problem converting from a qx.ui.form.List to a 
qx.ui.form.SelectBox.

I created a "multi-column" List that I wanted to use for a SelectBox.
I initially built the List, and it works fine:
(PlayGround Code)
http://pastebin.com/Y6kYWw4Q

Since I saw the SelectBox, basically combined the List with a Label, I 
assumed that I could use the same code to create the SelectBox. So I 
modified the previous code to,

142: -> var select = new qx.ui.form.SelectBox();

(added line after 145) -> var list = var list = 
select.getChildControl('list');

166: -> this.getRoot().add(select, {left: 10, top: 10});

Unfortunately, this does not work.

After tracking this down, it seem that the SelectBox is expecting the 
widgets in the List to be descendants of qx.ui.form.ListItem...

Problem 1:

Unfortunately, the ListItem does not really work for me, as:
1. I have no Icon
2. The label it self, is really the combination of the 3 fields 
(id,organization,permissions)

I initially tried to (adapt) the pg.widgets.LEOrganization by adding
functions for getIcon(), getLabel(), etc.

Problem 2:
But then I hit on another problem.

Each ListItem has a model associated. What this model is supposed to be 
used for is what I don't understand (as in the previous List the model, 
was just simply a qx.data.Array to store my entries)?

I need help in adapting this code to the SelectBox.

TIA
PF


------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_jan
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to