/
datatables.blade.php
executable file
·27 lines (26 loc) · 1.1 KB
/
datatables.blade.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{{-- FYI: Datatables do not support colspan or rowpan --}}
<link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/1.13.2/css/dataTables.bootstrap4.min.css">
<script type="text/javascript" src="https://code.jquery.com/jquery-2.2.4.min.js"></script>
<script type="text/javascript" src="https://cdn.datatables.net/1.13.2/js/jquery.dataTables.min.js"></script>
<script type="text/javascript" src="https://cdn.datatables.net/1.13.2/js/dataTables.bootstrap4.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$.noConflict();
var dt = $('.data-table').dataTable({
"paging": true,
"lengthChange": true,
"searching": true,
"ordering": true,
"info": true,
"autoWidth": true,
"dom": 'T<"clear">lfrtip',
"sPaginationType": "full_numbers",
'aoColumnDefs': [{
'bSortable': false,
'searchable': false,
'aTargets': ['no-search'],
'bTargets': ['no-sort']
}]
});
});
</script>