Hi,
Trying to add image in column . Did new eXcell type ( as described here - docs.dhtmlx.com/doku.php?id=dhtm … formatters ) :
function eXcell_greenRed( cell )
{
if ( cell )
{
this.cell = cell;
this.grid = this.cell.parentNode.grid;
}
this.edit = function(){}
this.isDisabled = function(){ return true; }
this.setValue=function( val )
{
this.setCValue( "<input type='image' src='imgs/" + ( val == 'T' ? "green" : "red" ) + ".gif'>", val );
}
}
eXcell_greenRed.prototype = new eXcell;
In grid configuration directed ‘greenRed’ type for needfull column . It return error : ‘Incorrect cell type: greenRed’ . What I’m missing here ? Javascript module ?