aButtons properties are not working.

aButtons properties are not working.

bhargava26bhargava26 Posts: 2Questions: 2Answers: 0

var tableTools = new $.fn.dataTable.TableTools(dataTable_leads,{
'sSwfPath': '//cdn.datatables.net/tabletools/2.2.4/swf/copy_csv_xls_pdf.swf',
'abuttons': ['csv',

                     {
                        'sExtends':'xls',
                        'sFileName':'GlData.xls',
                        'sButtonText':'Save to Excel'
                     },


                     'pdf']

    });
   $(tableTools.fnContainer()).insertAfter('#GlTable_wrapper');

This is my code. Tabletool buttons are coming and functionality is also working properly. But i want to change the text of the button with sButtonText and want to change the filename,extension also. None of these properlties are not working. Can some one help me here please?

Answers

  • allanallan Posts: 63,210Questions: 1Answers: 10,415 Site admin

    abuttons

    Should be aButtons.

    I would note as well that TableTools is legacy software and is no longer being maintained. The Buttons extension replaces it.

    Allan

This discussion has been closed.