update: comment button export to excel and pdf on materials student
This commit is contained in:
parent
4f9636b2a5
commit
a956ebb9c4
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
|
@ -534,20 +534,20 @@ function showContent(contentId) {
|
||||||
"paging": true,
|
"paging": true,
|
||||||
"ordering": true,
|
"ordering": true,
|
||||||
"info": true,
|
"info": true,
|
||||||
dom: 'Bfrtip', // Needs to include 'B' for buttons
|
// dom: 'Bfrtip', // Needs to include 'B' for buttons
|
||||||
buttons: [
|
// buttons: [
|
||||||
{
|
// {
|
||||||
extend: 'excelHtml5',
|
// extend: 'excelHtml5',
|
||||||
text: 'Export to Excel',
|
// text: 'Export to Excel',
|
||||||
title: 'Data Export REACT',
|
// title: 'Data Export REACT',
|
||||||
filename: 'react_data_export_topic_finished_student_' + new Date().toLocaleDateString() + '_' + new Date().toLocaleTimeString(),
|
// filename: 'react_data_export_topic_finished_student_' + new Date().toLocaleDateString() + '_' + new Date().toLocaleTimeString(),
|
||||||
customize: function (xlsx) {
|
// customize: function (xlsx) {
|
||||||
var sheet = xlsx.xl.worksheets['sheet1.xml'];
|
// var sheet = xlsx.xl.worksheets['sheet1.xml'];
|
||||||
// Customizations go here
|
// // Customizations go here
|
||||||
}
|
// }
|
||||||
},
|
// },
|
||||||
'pdf',
|
// 'pdf',
|
||||||
]
|
// ]
|
||||||
});
|
});
|
||||||
$('#studentSubmissionTable').DataTable({
|
$('#studentSubmissionTable').DataTable({
|
||||||
// Configuration options
|
// Configuration options
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user