On Tue, Jun 29, 2010 at 02:11, Nika <monika.f...@tieto.com> wrote:
>
> I am using a table and I need some kind of special renderer for that table.
> Depending on information in the cellvalue the cell should be renderered as
> checkbox, image, text or bold text. So I guess I need to extend
> qx.ui.table.cellrenderer.Default. But I am not really sure on how to do
> this. Should method _getContentHtml contained some kind of conditional?
>
Either there, or you can override
qx.ui.table.cellrenderer.Abstract.createDataCellHtml if you want more
complete control. The cellInfo parameter is an object with lots of useful
data that's described in the docs for
qx.ui.table.ICellRenderer.createDataCellHtml. In particular, you'll want to
look at the 'value' member which contains the value from the data model, and
if you need access to other column data from the same row, you can use the
rowData member which is the row from the table model.
Derrell
------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel