Incorrect header when exporting to PDF with yadcf filter

后端 未结 2 1915
一生所求
一生所求 2021-01-25 07:39

When I am trying to export to pdf my Datatable with a filter yadcf, the header show always every case from my filter, how can I hide that?

My javascript is :

         


        
2条回答
  •  执念已碎
    2021-01-25 07:52

    Ok i did it, but i think it s very weird :

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

    I don't know if is it to me to patch that, or maybe there is a bug, but the point is that it works !

提交回复
热议问题