title: Ignited datatables, how to use callback function?
body: <p>I am using Ignited datatables (for codeigniter) and I'm using the server side.
  I would like to show some values in RED or GREEN depending on their values.</p>
  
  <p>This is how I call the function inside the edit_column:</p>
  
  <pre><code>-&gt;edit_column('releve_statut', '$1', $this-&gt;label_this('releve_statut'))
  </code></pre>
  
  <p>And this is the function I'm calling:</p>
  
  <pre><code>public function label_this($str) {
  
      if($str == "Réalisé"){
          $r =  label_badge('success', 'Réalisé'); 
      } else if ($str == "En cours"){
         $r = label_badge('warning', 'En cours'); 
      }
  
      return $r;
  
  }
  </code></pre>
  
  <p>Any suggestion?</p>
  
  <p>Thanks :)</p>