From 98054d2725c6042335067c8693a436395f769b88 Mon Sep 17 00:00:00 2001 From: daengdeni Date: Sun, 19 May 2024 18:22:55 +0700 Subject: [PATCH] update export button --- .../parameter/loan_types/index.blade.php | 91 +++++-------------- 1 file changed, 23 insertions(+), 68 deletions(-) diff --git a/Resources/views/parameter/loan_types/index.blade.php b/Resources/views/parameter/loan_types/index.blade.php index c7e739e..79ff06b 100644 --- a/Resources/views/parameter/loan_types/index.blade.php +++ b/Resources/views/parameter/loan_types/index.blade.php @@ -25,77 +25,28 @@
-
- - - - - - -
- +
+ +
- - - - -
- + + +
- + + + - -
- -
- {{ $dataTable->table() }} -
- + +
+ +
+ {{ $dataTable->table() }}
- + +
+
@push('scripts') @@ -142,7 +93,7 @@ Livewire.dispatch('reload', false); }); - $(function(){ + $(function () { const documentTitle = 'Loan Type Report'; var buttons = new $.fn.dataTable.Buttons(LaravelDataTables['loan-type-table'], { buttons: [ @@ -157,6 +108,10 @@ extend: 'excelHtml5', title: documentTitle, exportOptions: { + modifier: { + page: 'all', + search: 'none' + }, columns: [0, 1, 2, 3, 4] } }, @@ -189,7 +144,7 @@ exportButtons.forEach(exportButton => { exportButton.addEventListener('click', e => { e.preventDefault(); - console.log(e.target.getAttribute('data-kt-export')); + //console.log(e.target.getAttribute('data-kt-export')); // Get clicked export value const exportValue = e.target.getAttribute('data-kt-export'); const target = document.querySelector('.dt-buttons .buttons-' + exportValue);