eXcell type - image

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 ?

Everything should work well. There is no need to include any additional js files.



this is enough.

Please, provide with a detailed sample of your code with the init of your grid.