Last active
November 18, 2020 13:41
-
-
Save namieluss/7254b6656a6be5aad8f5548c0e9e670c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function initDataTable() { | |
$('#example').dataTable({ | |
scrollX: true, | |
scrollY: (window.innerHeight / 2) + "px", | |
dom: 'Bfrtip', | |
buttons: [ | |
'colvis', | |
{ | |
extend: 'csv', | |
text: 'Download CSV', | |
exportOptions: { | |
columns: ':visible' | |
} | |
} | |
] | |
}) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment