It was actually quite easy. Using a mixin, I added a Color array to the
SimpleTableModel that held a color value for each row. This information was
set before creating the table. Then in the Pane.js file, there was a line
that set the row color, I changed it to:
rowElem.style.color = tableModel.getColor(row);
and that was all it took. It added no additional rendering time and it
accomplished my needs. Now it looks like changing a row color is going to
be much more difficult and require a lot more code.
Jim
On Jan 30, 2008 1:52 PM, Sebastian Werner <[EMAIL PROTECTED]> wrote:
> Hi Jim,
>
> I don't know how you have done this before, as in my opinion it was
> only possible to switch the colors of all rows for one table instance
> and not just a few. I would say that your request should be solvable
> using a custom row renderer. But I have not tried this or have enough
> practical experience using the table to give you a absolute correctly
> information here.
>
> Sebastian
>
>
>
> Am 30.01.2008 um 21:50 schrieb Jim Hunter:
>
> > Perhaps I have my mind twisted right now, but I am having issues
> > trying to grasp how the row colors in a table are now changed. I
> > would like to know how we are supposed to change row color with the
> > new code having row colors being moved to the theme. To me, a theme
> > is a global entity. And if I change the row color of the theme that
> > is applied to a table, all the rows of that table will get changed.
> > What I need to continue to do (I currently can do this with the
> > older code), is to load the data into the table, then change the 3rd
> > row to be a red font, the 7th row to be a green font. The colors of
> > the rows are determined by a user function that we need to call. So,
> > I don't mind if the row color stuff was moved to the theme,
> > specially if it helps speed up the table, as long as there is still
> > a way for me to set a certain row to another color on the fly. Has
> > anyone worked that out yet?
> >
> > Thanks,
> > Jim
> >
> -------------------------------------------------------------------------
> > This SF.net email is sponsored by: Microsoft
> > Defy all challenges. Microsoft(R) Visual Studio 2008.
> >
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/_______________________________________________
> > qooxdoo-devel mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel