JSFiddle - React, Tailwind, and code Playground
HTML
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.5/css/bootstrap.min.css">
<link rel="stylesheet" href="//cdn.datatables.net/1.10.8/css/dataTables.bootstrap.min.css">
<link rel="stylesheet" href="//cdn.datatables.net/responsive/1.0.7/css/responsive.bootstrap.min.css">
<link rel="stylesheet" href="//cdn.datatables.net/buttons/1.0.1/css/buttons.bootstrap.min.css">
<script src="//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.5/js/bootstrap.min.js"></script>
<script src="//cdn.datatables.net/1.10.8/js/jquery.dataTables.min.js"></script>
<script src="//cdn.datatables.net/1.10.8/js/dataTables.bootstrap.min.js"></script>
<script src="//cdn.datatables.net/responsive/1.0.7/js/dataTables.responsive.min.js"></script>
<script src="//cdn.datatables.net/buttons/1.0.1/js/dataTables.buttons.min.js"></script>
<script src="//cdn.datatables.net/buttons/1.0.1/js/buttons.bootstrap.min.js"></script>
<script src="//cdn.datatables.net/buttons/1.0.1/js/buttons.colVis.min.js"></script>
<link rel="stylesheet" href="//admin.connexionservicesgroup.com/assets/css/datatables/extensions/Buttons/buttons.dataTables.min.css">
<div class="container">
<table id="example" class="display" width="100%">
<thead>
<tr>
<th>Name</th>
<th class="never">Position</th>
<th>Office</th>
<th>Age</th>
<th>Start date</th>
<th>Salary</th>
</tr>
</thead>
<tfoot>
<tr>
<th>Name</th>
<th class="never">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>61</td>
<td>2011/04/25</td>
...
CSS
body {
font: 90%/1.45em"Helvetica Neue", HelveticaNeue, Verdana, Arial, Helvetica, sans-serif;
margin: 0;
padding: 0;
color: #333;
background-color: #fff;
}
div.container {
min-width: 980px;
margin: 0 auto;
}
JavaScript
$(document).ready(function () {
var table = $('#example').DataTable({
responsive: {
details: false,
breakpoints: [{
name: 'desktop',
width: Infinity
}, {
name: 'tablet',
width: 1024
}, {
name: 'fablet',
width: 768
}, {
name: 'phone',
width: 480
}],
},
dom: 'Bfrtip',
buttons: [
'columnsToggle'],
"bProcessing": true,
"bDeferRender": true,
});
});