Hi,

I try to fill a qx.ui.listview.ListView with Data-fields containing images.

The following code works fine:

var lc =
{
    name : { label : "Name", width : 200, type : "text" },
    icon : { width : 28, type : "image", align : "center" }
};

var ld = [];
ld.push({ name : { text : "sometext" }, icon : { source : 
"icon/16/actions/document-save.png" }});

var lv = new qx.ui.listview.ListView(ld, lc);
...


To get better control about the image I would like to use an instance of 
ContentCellImage like:

var myIcon = new 
qx.ui.listview.ContentCellImage("icon/16/places/user-trash.png");
ld.push({ name : { text : "sometext" }, icon : { myIcon }});

But this doesn't work.
What is the way to get the ContentCellImage into the ListView?

Thanks,

Joachim 

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to