Optimise rendering of bbs list
This commit is contained in:
parent
3e561ab068
commit
5cb70da458
@ -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>
|
||||
@ -40,3 +40,31 @@
|
||||
</div>
|
||||
</div>
|
||||
@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: '<<',
|
||||
next: '>>'
|
||||
}
|
||||
},
|
||||
});
|
||||
});
|
||||
</script>
|
||||
@append
|
Loading…
Reference in New Issue
Block a user