Created
August 4, 2018 15:11
-
-
Save quebrandolink/ba1b2b39d6cc57454185a87087487c21 to your computer and use it in GitHub Desktop.
JS Bin // source https://jsbin.com/bivogir
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous"> | |
<link href="https://cdn.datatables.net/1.10.18/css/dataTables.bootstrap4.min.css"> | |
</head> | |
<body> | |
<div class="container"> | |
<table id="example" class="display table table-bordered" style="width:100%"> | |
<thead> | |
<tr> | |
<th>Name</th> | |
<th>Position</th> | |
<th>Office</th> | |
</tr> | |
</thead> | |
<tbody> | |
<tr> | |
<td>Tiger Nixon</td> | |
<td>System Architect</td> | |
<td>Edinburgh</td> | |
</tr> | |
<tr> | |
<td>Garrett Winters</td> | |
<td>Accountant</td> | |
<td>Tokyo</td> | |
</tr> | |
<tr> | |
<td>Ashton Cox</td> | |
<td>Junior Technical Author</td> | |
<td>San Francisco</td> | |
</tr> | |
</tbody> | |
</table> | |
</div> | |
<script src="https://code.jquery.com/jquery-3.3.1.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"></script> | |
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.bundle.min.js" integrity="sha384-pjaaA8dDz/5BgdFUPX6M/9SUZv4d12SUPF0axWc+VRZkx5xU3daN+lYb49+Ax+Tl" crossorigin="anonymous"></script> | |
<script src="https://cdn.datatables.net/1.10.18/js/jquery.dataTables.min.js"></script> | |
<script src="https://cdn.datatables.net/1.10.18/js/dataTables.bootstrap4.min.js"></script> | |
<script type="text/javascript"> | |
$(document).ready(function() { | |
$('#example').DataTable({ | |
columnDefs: [ { orderable: false, targets: [ 4 ] } ], | |
pageLength: 25, | |
stateSave: true, | |
lengthMenu: [[5, 15, 25, 50, -1], [5, 15, 25, 50, "Todos"]], | |
language: { | |
url: "//cdn.datatables.net/plug-ins/9dcbecd42ad/i18n/Portuguese-Brasil.json" | |
}, | |
}); | |
} ); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment