DataTables for admin user management tab
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
<table class="table table-bordered table-striped nd_floatinghead">
|
<table id="data-table" class="table table-striped table-bordered" width="100%" cellspacing="0">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th class="nd_center-cell">Full Name</th>
|
<th class="nd_center-cell">Full Name</th>
|
||||||
@@ -75,3 +75,26 @@
|
|||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
$(document).ready(function() {
|
||||||
|
$('#data-table').dataTable({
|
||||||
|
"processing": true,
|
||||||
|
"stateSave": true,
|
||||||
|
"pageLength": 25,
|
||||||
|
"language": {
|
||||||
|
"search": 'Filter records: '
|
||||||
|
},
|
||||||
|
"columnDefs": [
|
||||||
|
{
|
||||||
|
"targets": [ 2, 3, 4, 5, 6 ],
|
||||||
|
"searchable": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"targets": [ 0, 1, 2, 3, 4, 5, 6 ],
|
||||||
|
"orderable": false
|
||||||
|
}
|
||||||
|
]
|
||||||
|
} );
|
||||||
|
} );
|
||||||
|
</script>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user