export datatable to pdf, excel

0

I'm trying to use tabletools to export the datatables but the buttons are not appearing to me.

I have the following

        "dom": 'T<"clear">lfrtip',
        "tableTools": {
            "sSwfPath": "../TableTools-2.2.4/swf/copy_csv_xls_pdf.swf"
        }

They can help me.

    
asked by anonymous 17.08.2015 / 17:10

1 answer

1

resolved

  "dom": 'T<"clear">lfrtip',
        "tableTools": {
         "aButtons": [                
                {
                    "sExtends": "collection",
                    "sButtonText": "Exportar",
                    "aButtons": ["csv", "xls", "pdf", "print"],
                    // TODO: Get this working.
                    "fnCellRender": function ( sValue) {                     
                        return sValue + " TableTools";
                    }
                }
            ],
            "sSwfPath": "../swf/copy_csv_xls_pdf.swf"
        },
    
18.08.2015 / 11:54