title: Using CellStyle when adding rows with BootstrapTable
body: <p>I have a Bootstrap-Table with a a button to add a new row of data. I would like to color the cell of a certain column (text2) for each new row as it's inserted. I am using the built in method <code>cellStyle()</code> as shown here: <a href="http://jsfiddle.net/wenyi/e3nk137y/9/" rel="nofollow noreferrer">http://jsfiddle.net/wenyi/e3nk137y/9/</a>, but the function method never seems to be called. </p>
  
  <p>Documentation for Bootstrap-Table:
  <a href="http://bootstrap-table.wenzhixin.net.cn/documentation/" rel="nofollow noreferrer">http://bootstrap-table.wenzhixin.net.cn/documentation/</a></p>
  
  <p>Table declaration with cellStyle parameter:</p>
  
  <pre><code>&lt;table id="table" data-pagination="true"  data-cell-style="cellStyle" class="table table-striped"&gt;&lt;/table&gt;
  </code></pre>
  
  <p>function to add style:</p>
  
  <pre><code>function cellStyle(value, row, index, field) {
    if (index === 0 &amp;&amp; field == 'text2') {
      return {classes: 'warning'};
    }
    else {
      return {};
    }
  }
  </code></pre>
  
  <p>My full code:</p>
  
  <p><a href="http://jsfiddle.net/wtg54xpy/" rel="nofollow noreferrer">http://jsfiddle.net/wtg54xpy/</a></p>