DataTables TableTools buttons not working correctly (simple example)

前端 未结 3 983
心在旅途
心在旅途 2020-12-11 22:24

I am trying to use the newest tableTool 2.2.0 and i have made a little and simple example jsfiddle.net/9ZTGb/

COPY and PRINT buttons seems to respond, but the \"Copy

3条回答
  •  春和景丽
    2020-12-11 22:49

    An answer to getting the Copy/CSV/Excel/PDF buttons working is provided here.

    Essentially, a cdn library is referenced instead of the local swf file. Change your swf path code to:

            "tableTools": {
                 "sSwfPath": "//cdn.datatables.net/tabletools/2.2.2/swf/copy_csv_xls_pdf.swf"
        }
    

    This, along with the standard initialization, worked for me.

提交回复
热议问题