Fixed header on jquery datatables

后端 未结 5 1582
悲&欢浪女
悲&欢浪女 2021-01-22 06:11

is there no other ways to set fixed header on jquery datatables??

when i try using fixed header, there\'s warning that fixed header 2 is not supported on scrolling datat

5条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-22 06:29

    For implementing Fixed header in jQuery Datatable, Please add "FixedHeader.min.js" in page header and add following code to page:

    var oFH = new FixedHeader(oTable);
    $('#tablename thead th:eq(0)').html('First column');
    oFH.fnUpdate();
    

    Hope this will help you.

提交回复
热议问题