Optimise rendering of bbs list

This commit is contained in:
Deon George 2024-04-14 16:59:06 +10:00
parent 3e561ab068
commit 5cb70da458

View File

@ -12,7 +12,7 @@
</div>
<div class="col-12 pt-2">
<table class="table monotable">
<table class="table monotable" id="bbslist">
<thead>
<tr>
<th class="w-25">System</th>
@ -39,4 +39,32 @@
</table>
</div>
</div>
@endsection
@endsection
@section('page-css')
@css('datatables')
@append
@section('page-scripts')
@js('datatables')
<script type="text/javascript">
$(document).ready(function() {
$('#bbslist').DataTable({
paging: true,
pageLength: 25,
searching: true,
autoWidth: false,
conditionalPaging: {
style: 'fade',
speed: 500 // optional
},
language: {
paginate: {
previous: '&lt;&lt;',
next: '&gt;&gt;'
}
},
});
});
</script>
@append