This commit is contained in:
suseendhiran17 2023-06-15 14:38:09 +05:30
commit 01a486e542
3 changed files with 43 additions and 15 deletions

View File

@ -114,17 +114,19 @@ $(document).on('click','.credit_usage',function(){
});
});
$(document).ready(function(){
var table = $('#datatable-buttons').DataTable();
table.destroy();
$('#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>