JSFiddle - React, Tailwind, and code Playground
HTML
<link rel="stylesheet" href="http://crm.arabspages.com/admin/media/css/jquery.dataTables.css">
<script src="http://crm.arabspages.com/admin/media/js/jquery.dataTables.js"></script>
<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.11.2/themes/smoothness/jquery-ui.css">
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.9.2/jquery-ui.min.js"></script>
<link rel="stylesheet" href="http://crm.arabspages.com/admin/media/css/jquery.dataTables.yadcf.css">
<script src="https://dl.dropboxusercontent.com/u/55621125/yadcf/war11/resources/js/jquery.dataTables.yadcf.js"></script>
<table id="example" class="display" cellspacing="0" width="100%">
<thead>
<tr>
<th>Name</th>
<th>Position</th>
<th>Office</th>
<th>Age</th>
<th>Start date</th>
<th>Salary</th>
</tr>
</thead>
<tfoot>
<tr>
<th>Name</th>
<th>Position</th>
<th>Office</th>
<th>Age</th>
<th>Start date</th>
<th>Salary</th>
</tr>
</tfoot>
<tbody>
<tr>
<td>Tiger Nixon</td>
<td>System Architect</td>
<td>Edinburgh</td>
<td>55</td>
<td>2011/04/25</td>
<td>$320,800</td>
</tr>
<tr>
<td>ertet Nixon</td>
<td>System ewtew</td>
<td>wet</td>
<td>61</td>
<td>2011/04/25</td>
<td>$320,800</td>
</tr>
<tr>
<td>ertet Nixon</td>
<td>System ewtew</td>
<td>wet</td>
<td>woot</td>
<td>2011/04/25</td>
<td>$320,800</td>
</tr>
<tr>
<td>ertet...
JavaScript
$(document).ready(function() {
var myTable = $('#example').DataTable({
"columnDefs": [{
"render": function (data, type, row) {
if (!(data > 0))
{
return '<span style="color:red;">0</span>';
}
else {
return data;
}
},
"targets": [3]
}]
});
yadcf.init(myTable, [
{column_number: 3,
filter_type: "range_number_slider",
column_data_type: "rendered_html",
html_data_type: "text"
}
]);
} );