DataTable responsive display certain columns

后端 未结 2 1501
别那么骄傲
别那么骄傲 2020-12-14 23:36

I am using DataTables along with responsive and facing issues while trying to display only certain columns.

Table layout is like this:

I need to display to

2条回答
  •  旧巷少年郎
    2020-12-14 23:54

    To show specific columns in responsive datatable, you just need to add Class Controls in th of table, as follow:

    class "all": Always display column irrespective of the screen size.

    class "none": Don't display as a column, but show in the child row.

    Source


    Here is its working demo.

    提交回复
    热议问题
    Column 1 Column 2 Column 3 Column 4 Column 5 Column 6 Column 7 Column 8 Column 9 Column 10 Column 11