susee
This commit is contained in:
parent
fc8e736a31
commit
06036d41c4
@ -153,6 +153,9 @@ $(document).on('click','.transaction',function(){
|
|||||||
text: 'PDF',
|
text: 'PDF',
|
||||||
customize: function(doc) {
|
customize: function(doc) {
|
||||||
// You can further customize the PDF here if needed
|
// You can further customize the PDF here if needed
|
||||||
|
doc.content[1].table.body.forEach(function(row) {
|
||||||
|
row.splice(0, 1); // Remove the first column (ID column)
|
||||||
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -161,17 +164,24 @@ $(document).on('click','.transaction',function(){
|
|||||||
text: 'Print',
|
text: 'Print',
|
||||||
customize: function(win) {
|
customize: function(win) {
|
||||||
// You can further customize the print output here if needed
|
// You can further customize the print output here if needed
|
||||||
|
$(win.document.body).find('table').find('th:first, td:first').remove();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
extend: 'copy',
|
extend: 'copy',
|
||||||
text: 'Copy', // Set the title for the Copy button
|
text: 'Copy', // Set the title for the Copy button
|
||||||
titleAttr: 'Copy', // Set the tooltip for the Copy button
|
titleAttr: 'Copy', // Set the tooltip for the Copy button
|
||||||
|
exportOptions: {
|
||||||
|
columns: ':not(:first-child)' // Exclude the first column (ID column)
|
||||||
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
extend: 'csv',
|
extend: 'csv',
|
||||||
text: 'CSV', // Set the title for the CSV button
|
text: 'CSV', // Set the title for the CSV button
|
||||||
title: 'Members', // Set your custom print title here
|
title: 'Members', // Set your custom print title here
|
||||||
|
exportOptions: {
|
||||||
|
columns: ':not(:first-child)' // Exclude the first column (ID column)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
});
|
});
|
||||||
|
|||||||
@ -159,34 +159,22 @@ $(document).on('click','.order_details',function(){
|
|||||||
title: 'Transactions', // Set your custom PDF title here
|
title: 'Transactions', // Set your custom PDF title here
|
||||||
text: 'PDF',
|
text: 'PDF',
|
||||||
customize: function(doc) {
|
customize: function(doc) {
|
||||||
doc.content[1].table.body.forEach(function(row) {
|
|
||||||
row.splice(0, 1); // Remove the first column (ID column)
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
extend: 'print',
|
extend: 'print',
|
||||||
title: 'Transactions', // Set your custom print title here
|
title: 'Transactions', // Set your custom print title here
|
||||||
text: 'Print',
|
text: 'Print',
|
||||||
customize: function(win) {
|
|
||||||
$(win.document.body).find('table').find('th:first, td:first').remove();
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
extend: 'copy',
|
extend: 'copy',
|
||||||
text: 'Copy', // Set the title for the Copy button
|
text: 'Copy', // Set the title for the Copy button
|
||||||
titleAttr: 'Copy', // Set the tooltip for the Copy button
|
titleAttr: 'Copy', // Set the tooltip for the Copy button
|
||||||
exportOptions: {
|
|
||||||
columns: ':not(:first-child)' // Exclude the first column (ID column)
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
extend: 'csv',
|
extend: 'csv',
|
||||||
text: 'CSV', // Set the title for the CSV button
|
text: 'CSV', // Set the title for the CSV button
|
||||||
title: 'Transactions', // Set your custom print title here
|
title: 'Transactions', // Set your custom print title here
|
||||||
exportOptions: {
|
|
||||||
columns: ':not(:first-child)' // Exclude the first column (ID column)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"language": {
|
"language": {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user