update: comment button export to excel and pdf on materials student

This commit is contained in:
abiyasa05 2025-04-07 10:43:25 +07:00
parent 9987585568
commit 532d971a3d
4 changed files with 14 additions and 14 deletions

View File

@ -534,20 +534,20 @@ function showContent(contentId) {
"paging": true,
"ordering": true,
"info": true,
dom: 'Bfrtip', // Needs to include 'B' for buttons
buttons: [
{
extend: 'excelHtml5',
text: 'Export to Excel',
title: 'Data Export REACT',
filename: 'react_data_export_topic_finished_student_' + new Date().toLocaleDateString() + '_' + new Date().toLocaleTimeString(),
customize: function (xlsx) {
var sheet = xlsx.xl.worksheets['sheet1.xml'];
// Customizations go here
}
},
'pdf',
]
// dom: 'Bfrtip', // Needs to include 'B' for buttons
// buttons: [
// {
// extend: 'excelHtml5',
// text: 'Export to Excel',
// title: 'Data Export REACT',
// filename: 'react_data_export_topic_finished_student_' + new Date().toLocaleDateString() + '_' + new Date().toLocaleTimeString(),
// customize: function (xlsx) {
// var sheet = xlsx.xl.worksheets['sheet1.xml'];
// // Customizations go here
// }
// },
// 'pdf',
// ]
});
$('#studentSubmissionTable').DataTable({
// Configuration options