As far as I can see, you don't need to explicitly send it anything; your row
of data gets passed in. To change what happens you can override the
RowRenderer class and provide your own createRowStyle() function with your
own rules, but you don't have to make a call to createRowStyle() directly.

Here's sample code for one of my rowrenderers that changes color based on
whether the data row is a header, is selected, etc.

    createRowStyle : function(rowInfo)
    {
      var rowStyle = [];
      rowStyle.push(";");
      rowStyle.push(this.__fontStyleString);
      rowStyle.push("background-color:");

      if (rowInfo.rowData.isHdr) {
          rowStyle.push(this.__colors.bgcolOdd);
      }
      else {
      if (rowInfo.focusedRow && this.getHighlightFocusRow())
      {
        rowStyle.push(rowInfo.selected ?
                      this.__colors.bgcolFocusedSelected :
                      this.__colors.bgcolFocused);
      }
      else
      {
        if (rowInfo.selected)
        {
          rowStyle.push(this.__colors.bgcolSelected);
        }
        else
        {
          rowStyle.push(this.__colors.bgcolEven);
        }
      }
      }

      if (rowInfo.rowData.isHdr) {
          rowStyle.push(";font-weight:bold");
      }

      rowStyle.push(';color:');
      rowStyle.push(rowInfo.selected && !rowInfo.rowData.isHdr ?
                    this.__colors.colSelected : this.__colors.colNormal);

      return rowStyle.join("");
    },

Hope this is useful,
Ken


On Tue, Jun 7, 2011 at 12:20 PM, smisobnline <[email protected]>wrote:

>  i want to set the backgroundcolor of some rows. i find this but how can i
> select the affected rows and how can i  set the  design/css
>
>  var rr = new qx.ui.table.rowrenderer.Default(table);
>  this.table.setDataRowRenderer(rr);
>
> to change the style i find this , but what  must i send to it?
>
> createRowStyle(Map rowInfo)
>
> css?!
>
>
> ------------------------------------------------------------------------------
> EditLive Enterprise is the world's most technically advanced content
> authoring tool. Experience the power of Track Changes, Inline Image
> Editing and ensure content is compliant with Accessibility Checking.
> http://p.sf.net/sfu/ephox-dev2dev
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
>
------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to