title: datatables export without all column values from filter
body: <p>I am using this code to filter the columns in datatables: <a href="https://jsfiddle.net/41vgefnf/10/" rel="nofollow noreferrer">https://jsfiddle.net/41vgefnf/10/</a></p>
  
  <pre><code>// This code has been beautified via http://jsbeautifier.org/ with 2 spaces indentation.
  $(document).ready(function() {
    function cbDropdown(column) {
      return $('&lt;ul&gt;', {
        'class': 'cb-dropdown'
      }).appendTo($('&lt;div&gt;', {
        'class': 'cb-dropdown-wrap'
      }).appendTo(column));
    }
  
    $('#example').DataTable({
      initComplete: function() {
        this.api().columns().every(function() {
          var column = this;
          var ddmenu = cbDropdown($(column.header()))
            .on('change', ':checkbox', function() {
              var active;
              var vals = $(':checked', ddmenu).map(function(index, element) {
                active = true;
                return $.fn.dataTable.util.escapeRegex($(element).val());
              }).toArray().join('|');
  
              column
                .search(vals.length &gt; 0 ? '^(' + vals + ')$' : '', true, false)
                .draw();
  
              // Highlight the current item if selected.
              if (this.checked) {
                $(this).closest('li').addClass('active');
              } else {
                $(this).closest('li').removeClass('active');
              }
  
              // Highlight the current filter if selected.
              var active2 = ddmenu.parent().is('.active');
              if (active &amp;&amp; !active2) {
                ddmenu.parent().addClass('active');
              } else if (!active &amp;&amp; active2) {
                ddmenu.parent().removeClass('active');
              }
            });
  
          column.data().unique().sort().each(function(d, j) {
            var // wrapped
              $label = $('&lt;label&gt;'),
              $text = $('&lt;span&gt;', {
                text: d
              }),
              $cb = $('&lt;input&gt;', {
                type: 'checkbox',
                value: d
              });
  
            $text.appendTo($label);
            $cb.appendTo($label);
  
            ddmenu.append($('&lt;li&gt;').append($label));
          });
        });
      }
    });
  });
  </code></pre>
  
  <p>I have the Copy, Excel, and CSV buttons enabled to export data after the view of which data I want is created, but all of the values for the column filtering appear as well.</p>
  
  <p>The default datatables returns only the column headings value on export, which is what I want.</p>