This commit is contained in:
Jagad R R
2025-01-15 20:33:51 +07:00
parent 7abfd74867
commit 5aa8304a48
2 changed files with 12 additions and 32 deletions
@@ -140,36 +140,15 @@
@section('scripts')
<script>
if ($('#dataTable-table').length) {
$('#dataTable-table').DataTable({
responsive: false,
dom: 'Blfrtip',
lengthMenu: [ [10, 50, 100, -1], [10, 50, 100, "All"] ], // Control the entries dropdown
buttons: [
{
extend: 'excel',
text: 'Excel'
},
{
extend: 'pdf',
text: 'PDF',
orientation: 'landscape',
pageSize: 'A4',
exportOptions: {
columns: ':visible'
}
},
{
extend: 'print',
text: 'Print',
orientation: 'landscape',
exportOptions: {
columns: ':visible'
}
},
'colvis'
]
});
}
</script>
if ($('#dataTable-table').length) {
$('#dataTable-table').DataTable({
responsive: false,
dom: 'Bfrtip',
buttons: ['excel', 'csv', 'pdf', 'print', 'colvis'],
paging: false,
info: false,
pageLength: -1
});
}
</script>
@endsection