Hi Joachim, Joachim Weber wrote: > 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? This answer is that instances of ContentCellImage are already in use ;-) If you define the columns as type "image" ContentCellImage instances are automatically used for displaying the icons. In order which key (text/image/iconHtml/html/link) is used the corresponding ContentCell* instance is initialized by the ListViewPane class.
I hope this answers your question. cheers, Alex ------------------------------------------------------------------------- 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 qooxdoo-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel