JSFiddle - React, Tailwind, and code Playground
JavaScript
table = $('table').DataTable({
'lengthMenu': [[10, 25, 50, -1], [10, 25, 50, "All"]],
'iDisplayLength': -1,
fixedHeader: true,
"autoWidth": false,
buttons: [
'print',
'excelHtml5',
{
extend: 'pdf',
pageSize: 'LETTER',
orientation: 'landscape',
title: '',
exportOptions: {
columns: [0, 1, 7, 8, 13, 17]
}
}
],
data: data,
columns: [
{
data: 'job', // 0
title: 'Job',
width: '75px'
},