Hi,

How to access other columns from custom cell renderer?

For example in qooxdoo is this cell renderer:

/**
 * The string data cell renderer. All it does is escape the incoming String
 * values.
 */
qx.Class.define("qx.ui.table.cellrenderer.String",
{
  extend : qx.ui.table.cellrenderer.Conditional,

  members :
  {
    // overridden
    _getContentHtml : function(cellInfo) {
      return qx.html.String.escape(cellInfo.value || "");
    },

    // overridden
    _getCellClass : function(cellInfo) {
      return "qooxdoo-table-cell";
    }
  }
});

Important method is _getContentHtml() that I want to use, but the
result is dependent to other column. I need something like this:

    // overridden
    _getContentHtml : function(cellInfo) {
      return qx.html.String.escape(((IS_DIRECTORY) ? "[" +
cellInfo.value + "]" : cellInfo.value) || "");
    },

But I don't know how to access other columns.

Thank you:)
- Petr

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to