title: DataTable exporting buttons in AngularJS
body: <p>I use the angular-datatable plugin, with export buttons.</p>
  
  <p>Example here: <a href="http://l-lin.github.io/angular-datatables/#/withButtons" rel="nofollow">http://l-lin.github.io/angular-datatables/#/withButtons</a></p>
  
  <pre><code>vm.dtOptions = DTOptionsBuilder.fromSource('data.json')
      .withDOM('frtip')
      .withPaginationType('full_numbers')
      // Active Buttons extension
      .withButtons([
          'columnsToggle',
          'colvis',
          'copy',
          'print',
          'excel',
          {
              text: 'Some button',
              key: '1',
              action: function (e, dt, node, config) {
                  alert('Button activated');
              }
          }
      ]);
  </code></pre>
  
  <p>My problem is that  When I try to export, the hidden columns shown.</p>
  
  <p>I try to find solution for export just the visible columns, And I find the solution here
  <a href="https://datatables.net/forums/discussion/3210/tabletools-how-to-hide-columns-when-exporting-copying" rel="nofollow">https://datatables.net/forums/discussion/3210/tabletools-how-to-hide-columns-when-exporting-copying</a></p>
  
  <pre><code>$('#list').dataTable({
    "sDom": 'T&lt;"clear"&gt;lfrtip',
    "oTableTools": {
      "sSwfPath": "swf/copy_cvs_xls_pdf.swf", // setting path for swf file. Displays export buttons
      "aButtons": [{
        "sExtends": "copy",
        "mColumns": [0, 1, 2, 3, 4, 5] // Export settings for Copy to Clipboard
      }, {
        "sExtends": "csv",
        "mColumns": [0, 1, 2, 3, 4, 5] // Export settings for CSV file
      }, {
        "sExtends": "xls",
        "mColumns": [0, 1, 2, 3, 4, 5] // Export settings for Excel file
      }, {
        "sExtends": "pdf",
        "mColumns": [0, 1, 2, 3, 4, 5], // Export settings for PDF file
        "sPdfOrientation": "landscape"
      }],
    },
  </code></pre>
  
  <ol>
  <li>How can I add this option to angular-datatable plugin, For select which column export?</li>
  <li>How can I change the file name for the export file (like excel, pdf)?</li>
  </ol>