Duplicate empty header occur in datatable when enabling scrollX or scrollY when using Google Chrome

后端 未结 10 1100
猫巷女王i
猫巷女王i 2021-02-06 00:09

I have a datatable in my program. And I want it to be scrollable horizontally so what I did was like this:

var tableI = $(\'#table_data\').DataTable({
    \"bLe         


        
10条回答
  •  面向向阳花
    2021-02-06 00:35

    This worked for me:

    $('#DataTables_Table_0').on( 'draw.dt' function() {
        $('.dataTables_scrollBody thead tr').addClass('hidden')
    }
    

    Reference: geam's March 2015 answer on datatables.net forum

提交回复
热议问题