@qooxdoo/framework
Version:
The JS Framework for Coders
46 lines (35 loc) • 1.09 kB
JavaScript
/* ************************************************************************
qooxdoo - the new era of web development
http://qooxdoo.org
Copyright:
2007 OpenHex SPRL, http://www.openhex.org
License:
MIT: https://opensource.org/licenses/MIT
See the LICENSE file in the project's top-level directory for details.
Authors:
* Gaetan de Menten (ged)
************************************************************************ */
/**
* 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
*****************************************************************************
*/
members :
{
// overridden
_getContentHtml : function(cellInfo) {
return qx.bom.String.escape(cellInfo.value || "");
},
// overridden
_getCellClass : function(cellInfo) {
return "qooxdoo-table-cell";
}
}
});