Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
nilayb12 committed Dec 8, 2023
2 parents 6bdbc6d + 6f137a7 commit 4cd078c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion style.css
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,6 @@ tfoot input {
.fa-icon {
color: white;
position: absolute;
top: 7px;
top: 5px;
right: 0;
}
13 changes: 10 additions & 3 deletions viewTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,9 @@ function initDataTable() {
scrollY: '75vh',
scrollCollapse: true,
dom: 'PlBfritp',
// dom: 'P'+
// '<"fg-toolbar ui-toolbar ui-widget-header ui-helper-clearfix ui-corner-tl ui-corner-tr"lBfr>'+'t'+
// '<"fg-toolbar ui-toolbar ui-widget-header ui-helper-clearfix ui-corner-bl ui-corner-br"ip>',
processing: true,
pagingType: "full_numbers",
keys: true,
Expand All @@ -109,10 +112,14 @@ function initDataTable() {
// responsive: true,
deferRender: true,
buttons: [
'colvis',
{
extend: 'colvis',
// collectionTitle: 'Column Visibility Panel'
},
{
extend: 'csv',
text: 'Download CSV',
text: '<i class="fa-solid fa-file-csv fa-xl" />',
titleAttr: 'Download Data as CSV',
exportOptions: {
columns: ':visible'
}
Expand All @@ -133,7 +140,7 @@ function initDataTable() {
});
});
$('#tableData_filter input')
.after('<span class="fa-icon"><i class="fa-solid fa-magnifying-glass"></i></span>');
.after('<span class="fa-icon" /><i class="fa-solid fa-magnifying-glass" />');
},
columnDefs: [
{
Expand Down

0 comments on commit 4cd078c

Please sign in to comment.