Parameter in the display of xls,csv and pdf does not work

Parameter in the display of xls,csv and pdf does not work

haroldlharoldl Posts: 1Questions: 1Answers: 0

Hi,

I can't understand why my below code does not properly. Basically, it display the default export buttons but does not consider the specific parameters I have defined before such as the path of the swf.

Can someone help me on that?
Thanks and regards,

  $(document).ready(function() {
        var table=$('#table').DataTable( {
            tableTools: {"aButtons": ["copy","csv","xls"],
             "sSwfPath": "../assets/img/copy_csv_xls_pdf.swf"
            }
        } );
        var tt = new $.fn.dataTable.TableTools( table );
        $( tt.fnContainer() ).prependTo('div.bottom.clearfix');
  } );
This discussion has been closed.