Excluding last column of jQuery DataTables.net TableTools

前端 未结 5 889
挽巷
挽巷 2021-01-16 18:43

Question: How can I exclude the last column of jQuery DataTables.net when using the TableTools extras to export?

Details

I\

5条回答
  •  误落风尘
    2021-01-16 19:23

    Suppose you have six columns, and you only want to display columns 1, 2, 3 and 5. Try this :

    {
       text: "print",
       extend: "print",
       className: "btn btn-lg btn-danger",
       exportOptions:
         {
           columns: [0,1,2,4]}
         }
    }
    

提交回复
热议问题