title: Change Row background color with new DataTables API
body: <p>I have started using the new DataTables API v1.10.2 and would like to know how I can optimize this bit of my code.</p>
  
  <p>At first, for me to hide a column, I used this code:</p>
  
  <pre><code>"aoColumnDefs": [
              {
              "targets": [ 0 ],
              "visible": false,
              "searchable": false
              },
              {
              "targets": [ 4 ],
              "visible": false
              },
  </code></pre>
  
  <p>Now I used this which makes the code smaller and easy to understand:</p>
  
  <pre><code>"columns": [
          { "data": "source", "visible": false },
          ........
          { "data": "host" }
  </code></pre>
  
  <p>What I would like is to see how I can optimize another code that checks for a value (1-5) in a column using <strong>fnRowCallback</strong> and changes the row color if it meets the condition using the new DataTables 1.10.2:</p>
  
  <p>Code:</p>
  
  <pre><code>"fnRowCallback": function( nRow, aData, iDisplayIndex, iDisplayIndexFull ) {
      if ( aData.priority == "5" )
      {
          $('td', nRow).css('background-color', 'Red');
          red++;
      }
      else if ( aData.priority == "4" )
      {
          $('td', nRow).css('background-color', 'Orange');
          orange++;
      }
      {
      ..........
      }
  }
  </code></pre>