title: Jquery datatables custom button for export
body: <p>I have a data table that has 2 buttons, the export for pdf and csv. My colleague asked me if possible, there is only one button in the table and when the user clicks it, it will automatically download two file types. The CSV and the PDF one. Is that possible? Thanks for answering.</p>
  <p>Currently my datatable code is</p>
  <pre><code>        $('#apparatus-table').DataTable( {
              pageLength: 5,
              dom: 'Bfrtip',
              buttons:[
                          {
                              extend: 'csv',
                              className: 'grantors-btn rounded-full font-bold bg-indigo-500 px-4 py-2 text-white',
                              text: 'CSV',
                          },
                          {
                              extend: 'pdf',
                              className: 'grantors-btn rounded-full font-bold bg-indigo-500 px-4 py-2 text-white',
                              text: 'PDF',
                          },
                      ],
  
      });
  </code></pre>