How to place DataTables column filter on top

前端 未结 7 2053
[愿得一人]
[愿得一人] 2020-12-08 16:29

I am using jQuery DataTables latest version. I want to use individual column filter on every table so am using the column filter plugin but am getting search boxes in foote

7条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-08 16:44

    You can move it to the top of your table by adding the parameter 'sPlaceHolder'

    }).columnFilter({
        sPlaceHolder: "head:after",
        aoColumns: [ ...
    

提交回复
热议问题