Docs
API
  • render

    Function

    Before grid cell will be updated with it's value, function render runs if it exist.

    Function render is mainly used for some not standard styling or formatting of cell value.

    Example

    
    render: function(o){
      if(o.value < 0){
        o.style = {
          color: '#E46B67'
        };
      }
      else{
        o.style = {
          color: '#65AE6E'
        };
      }
    
      o.value = o.value + '%';
    
      return o;
    }