使用yadcffilter导出为PDF时标题不正确

当我尝试使用filteryadcf导出到pdf我的数据表时,标题始终显示我的filter中的每个案例,我该如何隐藏它?

我的javascript是:

var vsan = $('#vsan').DataTable( { "lengthMenu": [ [-1, 10, 40, 50], ["All", 10, 40, 50] ], "sDom": 'fBltif', "buttons": [ { extend: 'print', exportOptions: { columns: ':visible' } }, { extend: 'excel', exportOptions: { columns: ':visible' } }, { extend: 'pdfHtml5', exportOptions: { columns: ':visible' } }, { extend: 'copyHtml5', exportOptions: { columns: ':visible' } }, { extend: 'csv', exportOptions: { columns: ':visible' } } ], "bJQueryUI": true, //Enable jQuery UI ThemeRoller support "bAutoWidth": false, "bDestroy": true, //"order": [[ 3, "desc" ]], //tri par défaut "bStateSave": false, //plante ? "bPaginate": true, //Enable or disable pagination. "bInfo": true, }); yadcf.init(vsan, [{column_number : 0, filter_type : "none"}, {column_number : 1, filter_type : "none"}, {column_number : 2, filter_type : "none"}, {column_number : 3, filter_type : "select"}, {column_number : 4, filter_type : "auto_complete"}, {column_number : 5, filter_type : "range_number_slider"},{column_number : 6, filter_type : "none"}, {column_number : 7, filter_type : "range_number_slider"}]); 

这是问题所在: 在此处输入图像描述

我正在使用 :

 http://ajax.aspnetcdn.com/ajax/jquery.dataTables/1.9.4/jquery.dataTables.min.js https://rawgit.com/vedmack/yadcf/8e071af195106fa702f942373c65164b89ca40ff/jquery.dataTables.yadcf.js 

谢谢

好吧,我做到了,但我认为这很奇怪:

 exportOptions: { columns: ':visible' , format: { header: function ( data, column, row ) { return data.substring(data.indexOf("inline-block")+15,data.indexOf(" 

我不知道是否可以修补它,或者可能有一个错误,但重点是它有效!

作品