Not quite what you wanted but maybe instructive anyway, I used this in
something I wrote a few years ago to alter the background of the cells in a
particular table column.

It overrides the _getCellStyle() member function of the
qx.ui.table.cellrenderer.Default class:

qx.Class.define('rainmaker.StateCellRenderer',
    {
    extend : qx.ui.table.cellrenderer.Default,

    members :
        {
        // overridden
        _getCellStyle : function(cellInfo)
            {
            var style = this.base(arguments, cellInfo);
            var state =
cellInfo.rowData[cellInfo.table.getTableModel().getColumnIndexById('state')];
            return style + ((state == 'on') ? 'color:white;
background-color:green;' : '');
            }
        }
    });

In my case the color is based on the value of the cell which is in the
'state' column.

Larry Blische




-----
Larry Blische * Senior Analyst
The Kravis Center for the Performing Arts
701 Okeechobee Boulevard * West Palm Beach, FL 33401 USA
561.651.4379 * mailto:blis...@kravis.org
--
View this message in context: 
http://qooxdoo.678.n2.nabble.com/Set-Background-Color-of-Nth-Table-Column-tp7586948p7586961.html
Sent from the qooxdoo mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to