I'm working on implementing Copy, Excel, PDF, and Print. I'm not able to export data table with input fields. while printing data is not getting displayed in the table
var table = $('#quotationproduct_table').DataTable({
dom: 'Bfrtip',
buttons: [
'copy', 'csv', 'excel', 'pdf', 'print'
],
pageLength: 10,
processing: true,
serverSide: true,
bSort: false,
responsive: true,
ajax: {
url: "{{ route('quotations.index') }}",
data: {
'enquiryid': $("#enquiryid").val()
}
},
columns: [
{
data: 'productid_txt',
name: 'productid_txt'
},
{
data: 'productname_txt',
name: 'productname_txt'
},
{
data: 'quantity_txt',
name: 'quantity_txt'
},
{
data: 'unit_txt',
name: 'unit_txt'
},
{
data: 'vendor',
name: 'vendor',
}
],
Edited by Colin - Syntax highlighting. Details on how to highlight code using markdown can be found in this guide.