%PDF- %GIF98; %PNG;
Server : ApacheSystem : Linux sh00666.bluehost.com 5.14.0-687.26.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Jul 14 16:32:02 EDT 2026 x86_64 User : ndkhermy ( 1200) PHP Version : 8.5.12 Disable Function : NONE Directory : /home1/ndkhermy/www/website_93b53270/admin/assets/js/pages/ |
Upload File : |
$(document).ready(function() {
setTimeout(function() {
// [ HTML5 Export Buttons ]
$('#basic-btn').DataTable({
dom: 'Bfrtip',
buttons: ['copy', 'csv', 'excel', 'pdf', 'print']
});
// [ Column Selectors ]
$('#cbtn-selectors').DataTable({
dom: 'Bfrtip',
buttons: [{
extend: 'copyHtml5',
exportOptions: {
columns: [0, ':visible']
}
}, {
extend: 'excelHtml5',
exportOptions: {
columns: ':visible'
}
}, {
extend: 'pdfHtml5',
exportOptions: {
columns: [0, 1, 2, 5]
}
}, 'colvis']
});
// [ Excel - Cell Background ]
$('#excel-bg').DataTable({
dom: 'Bfrtip',
buttons: [{
extend: 'excelHtml5',
customize: function(xlsx) {
var sheet = xlsx.xl.worksheets['sheet1.xml'];
$('row c[r^="F"]', sheet).each(function() {
if ($('is t', this).text().replace(/[^\d]/g, '') * 1 >= 500000) {
$(this).attr('s', '20');
}
});
}
}]
});
// [ Custom File (JSON) ]
$('#pdf-json').DataTable({
dom: 'Bfrtip',
buttons: [{
text: 'JSON',
action: function(e, dt, button, config) {
var data = dt.buttons.exportData();
$.fn.dataTable.fileSave(new Blob([JSON.stringify(data)]), 'Export.json');
}
}]
});
}, 350);
});