orderBy_and_Cvv_pdf:GWM

This commit is contained in:
sriramv 2023-06-15 13:53:13 +05:30
parent 608ec6ae89
commit 199d63b85e
3 changed files with 50 additions and 13 deletions

View File

@ -114,17 +114,28 @@ $(document).on('click','.credit_usage',function(){
});
});
$(document).ready(function(){
var table = $('#datatable-buttons').DataTable();
table.destroy();
// $(document).ready(function(){
// var table = $('#datatable-buttons').DataTable();
// table.destroy();
$('#datatable-buttons').DataTable({
"order": [[ 0, "desc" ]]
});
// $('#datatable-buttons').DataTable({
// "order": [[ 0, "desc" ]]
// });
});
// });
</script>
<script>
$(document).ready(function() {
$('#datatable-buttons').DataTable({
"order": [[0, 'desc']], // Set initial sorting to descending on the first column
"dom": 'Bfrtip', // Show export buttons
"buttons": ['copy', 'csv', 'excel', 'pdf'], // Enable export options
"language": {
"search": "Search: " // Customize search label
}
});
});
</script>

View File

@ -32,7 +32,7 @@
</p> -->
<table id="datatable-buttons" data-order="[[1, 'desc']]" class="table table-striped dt-responsive nowrap w-100">
<table id="datatable-buttons" class="table table-striped dt-responsive nowrap w-100">
<thead>
<tr>
<th>Order Id</th>
@ -131,4 +131,18 @@ $(document).on('click','.order_details',function(){
}
});
});
</script>
</script>
<script>
$(document).ready(function() {
$('#datatable-buttons').DataTable({
"order": [[1, 'desc']], // Set initial sorting to descending on the first column
"dom": 'Bfrtip', // Show export buttons
"buttons": ['copy', 'csv', 'excel', 'pdf'], // Enable export options
"language": {
"search": "Search: " // Customize search label
}
});
});
</script>

View File

@ -30,7 +30,7 @@
</p> -->
<table id="datatable-buttons" data-order="[[0, 'asc']]" class="table table-striped dt-responsive nowrap w-100">
<table id="datatable-buttons" class="table table-striped dt-responsive nowrap w-100">
<thead>
<tr>
<th hidden>id</th>
@ -77,7 +77,7 @@
</div>
<!-- end row-->
<script>
<!-- <script>
$(document).ready(function(){
var table = $('#datatable-buttons').DataTable();
table.destroy();
@ -86,4 +86,16 @@ table.destroy();
"order": [[ 0, "desc" ]]
});
});
</script>
</script> -->
<script>
$(document).ready(function() {
$('#datatable-buttons').DataTable({
"order": [[0, 'desc']], // Set initial sorting to descending on the first column
"dom": 'Bfrtip', // Show export buttons
"buttons": ['copy', 'csv', 'excel', 'pdf'], // Enable export options
"language": {
"search": "Search: " // Customize search label
}
});
});
</script>