Jquery - DataTables [tableTools]: export only visible rows

前端 未结 4 1669
陌清茗
陌清茗 2021-02-09 02:18

I just started out using jQuery DataTables.

using the tableTools of DataTables, is it possible to only export visible rows instead of all the rows? If for example the pa

4条回答
  •  眼角桃花
    2021-02-09 02:37

    You may set the selection of the page to current page for specific export.

    Ref: http://datatables.net/docs/DataTables/1.9.4/#$

    { "sExtends": "xls", "mColumns": "visible", "oSelectorOpts": { page: "current" } }
    

提交回复
热议问题