On Thursday 21 July 2011 13:41:07 you wrote: > This is exactly the question. How do I override the image cell renderer? > Which methods do I override and how do I achieve to put a string label > next to the image? Setting an own cell renderer is quite easy:
--snip-- // example how to create a new image cell renderer instance var renderer = new qx.ui.table.cellrenderer.Image(); // first parameter is the column (zero-based) // so here the fourth column is used table.getTableColumnModel().setDataCellRenderer(3, renderer); --snip-- Take a look at the "qx.ui.table.cellrenderer.Abstract" class. All available cellrenderers are based on this class. If you only want to change the content of your cell you have to sublcass the "Abstract" cellrenderer class and override the "_getContentHtml" method. Within this method you can put together your HTML string which is then display within the cell. This method gets handed in the information about the current cell (e.g. the images to display, if you defined them in your table model). Regards, Alex ------------------------------------------------------------------------------ 5 Ways to Improve & Secure Unified Communications Unified Communications promises greater efficiencies for business. UC can improve internal communications as well as offer faster, more efficient ways to interact with customers and streamline customer service. Learn more! http://www.accelacomm.com/jaw/sfnl/114/51426253/ _______________________________________________ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
