add export button to all table

This commit is contained in:
Jagad R R
2024-12-26 15:07:24 +07:00
parent 81ecc4b69a
commit 603911d2bf
12 changed files with 138 additions and 58 deletions
@@ -83,10 +83,16 @@
@section('scripts')
<script>
if ($('#dataTable').length) {
$('#dataTable').DataTable({
responsive: false
});
}
$(document).ready(function () {
if ($('#dataTable').length) {
$('#dataTable').DataTable({
responsive: true,
dom: 'Bfrtip',
buttons: [
'excel', 'pdf', 'print'
]
});
}
});
</script>
@endsection
@@ -83,10 +83,16 @@
@section('scripts')
<script>
if ($('#dataTable').length) {
$('#dataTable').DataTable({
responsive: false
});
}
$(document).ready(function () {
if ($('#dataTable').length) {
$('#dataTable').DataTable({
responsive: true,
dom: 'Bfrtip',
buttons: [
'excel', 'pdf', 'print'
]
});
}
});
</script>
@endsection
@@ -83,10 +83,16 @@
@section('scripts')
<script>
if ($('#dataTable').length) {
$('#dataTable').DataTable({
responsive: false
});
}
$(document).ready(function () {
if ($('#dataTable').length) {
$('#dataTable').DataTable({
responsive: true,
dom: 'Bfrtip',
buttons: [
'excel', 'pdf', 'print'
]
});
}
});
</script>
@endsection