Have you seen the demo sample?
Here is the code used to populate it:
t.addListener("loadData", function(e){
var str = e.getData();
var data = [];
for( var i=0; i<(Math.floor(Math.random()*10)+3);i++ )
{
data.push( { label: str + " " + i } );
}
qx.util.TimerManager.getInstance().start(function(){
t.populateList( str, data );
},null,this,null,500);
},this);
You have to listen to the "loadData" event and then get you data from
somewhere else (Rpc, simple Request, local array, etc). In the example it
"creates" the data array just to show something in the list.
On Wed, Nov 10, 2010 at 11:00 AM, omrihar <[email protected]> wrote:
>
> Hi,
>
> I'm using the TokenField widget, and really like it.
> It is quite easy for the user to add values from the list, but I'm not so
> sure what should I do if I want to prepopulate it with values?
>
> Is this the right place to ask about contributions as well?
>
> Thanks!
>
> Omri
> --
> View this message in context:
> http://qooxdoo.678.n2.nabble.com/Prepopulating-a-TokenField-widget-tp5724596p5724596.html
> Sent from the qooxdoo mailing list archive at Nabble.com.
>
>
> ------------------------------------------------------------------------------
> The Next 800 Companies to Lead America's Growth: New Video Whitepaper
> David G. Thomson, author of the best-selling book "Blueprint to a
> Billion" shares his insights and actions to help propel your
> business during the next growth cycle. Listen Now!
> http://p.sf.net/sfu/SAP-dev2dev
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
------------------------------------------------------------------------------
The Next 800 Companies to Lead America's Growth: New Video Whitepaper
David G. Thomson, author of the best-selling book "Blueprint to a
Billion" shares his insights and actions to help propel your
business during the next growth cycle. Listen Now!
http://p.sf.net/sfu/SAP-dev2dev
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel