JSFiddle - React, Tailwind, and code Playground
HTML
<script src="https://cdn.datatables.net/1.10.13/js/jquery.dataTables.min.js"></script>
<script src="https://code.jquery.com/jquery-3.1.1.min.js"></script>
<link rel="stylesheet" href="https://cdn.datatables.net/1.10.13/css/jquery.dataTables.min.css">
<div class="dataTables_wrapper form-inline table-responsive no-footer" id="totalCountTable_wrapper">
<div class="row">
<div class="col-sm-6"></div>
<div class="col-sm-6">
<div class="dataTables_filter hide" id="totalCountTable_filter">
<label></label>
</div>
</div>
</div>
<table class="table table-striped table-bordered no-margin text-center dataTable no-footer" id="totalCountTable" role="grid">
<thead>
<tr role="row">
<th aria-controls="totalCountTable" aria-label=" User Name : activate to sort column ascending" class="userNameIndex text-center sorting" colspan="1" rowspan="1" style="vertical-align: middle;" tabindex="0">User Name</th>
<th aria-controls="totalCountTable" aria-label=" Name : activate to sort column ascending" class="nameIndex text-center sorting" colspan="1" rowspan="1" style="vertical-align: middle;" tabindex="0">Name</th>
<th aria-controls="totalCountTable" aria-label=" Location / Map : activate to sort column ascending" class="locationIndex text-center sorting" colspan="1" rowspan="1" style="width: 22%; vertical-align: middle;" tabindex="0">Location / Map</th>
<th aria-controls="totalCountTable" aria-label=" Speed : activate to sort column ascending" class="speedIndex text-center sorting" colspan="1" rowspan="1" style="vertical-align: middle;" tabindex="0">Speed</th>
<th aria-controls="totalCountTable" aria-label=" Battery : activate to sort column ascending" class="batteryIndex text-center sorting" colspan="1" rowspan="1" style="vertical-align: middle;" tabindex="0">Battery</th>
<th aria-controls="totalCountTable" aria-label=" Last Update : activate to sort column ascending" class="lastUpdateIndex text-center sorting" colspan="1"...
JavaScript
$(document).ready(function {
totalDataTab = $("#totalCountTable").dataTable (
{
// "dom": "<'row '<'row toolbarIndex col-md-12 col-xs-12 col-sm-12'<'col-md-2 col-md-offset-5 col-sm-3 col-xs-7 no-padding autoRefreshIndex'><'col-md-2 col-sm-2 col-xs-5 customizeCol toolbar'><'col-md-1 col-sm-3 col-xs-3 no-padding appendMessage'>>" + "<'row'<'col-md-12 col-sm-12 col-xs-12 no-padding't>>" + "<'row'<'col-md-12 col-sm-12 col-xs-12 '<'col-md-4 col-sm-4 col-xs-12'i><'col-md-8 col-xs-12'p>>>",
// "dom": "<'row Total '<'row toolbarIndex col-md-12 col-xs-12 col-sm-12'<'col-md-2 col-md-offset-5 col-sm-3 col-xs-7 no-padding autoRefreshIndex'><'col-md-2 col-sm-2 col-xs-5 customizeCol toolbar'><'col-md-2 col-sm-9 col-xs-9 searchCss noPadding searchClass'f'><'col-md-1 col-sm-3 col-xs-3 no-padding appendMessage'>>" + "<'row'<'col-md-12 col-sm-12 col-xs-12 no-padding'>>" + "<'row'<'col-md-12 col-sm-12 col-xs-12 '<'col-md-4 col-sm-4 col-xs-12'i><'col-md-8 col-xs-12'p>>>",
"language": {
"sSearch": '',
"searchPlaceholder": "Search"
},
"ScrollY": "100%",
"aaSorting": [],
"bRetrieve" :true,
"bPaginate":false,
"bLengthChange": false,
"autoWidth": false,
"iDisplayLength": 5,
"bFilter":true,
"bDestroy":false,
"bInfo": false,
"aoColumns":[{"bSearchable": true,"className": "userNameIndex"},{"bSearchable": true,className:"nameIndex"}, {"sWidth":"22%","bSearchable": true,className:"locationIndex"}, {"bSearchable": true,'bSortable':true,className:"speedIndex","sType": "num"}, {"bSearchable": true,className:"batteryIndex", "sType": "pct", "aTargets": [ 0 ] }, {"bSearchable": true,className:"lastUpdateIndex"} ,{"bSearchable": true,className:"CoordinateIndex"} ,{"bSearchable": true,"className": "distanceTravelledIndex","sType" : "natural"},{"bSearchable":...