相关疑难解决方法(0)

如何将DataTables列过滤器置于顶部

我正在使用jQuery DataTables最新版本.我想在每个表上使用单独的列过滤器,所以我使用列过滤器插件,但我只在页脚中获取搜索框.我想放在标题中

    $(document).ready(function () {
var  oTable=$("#example").dataTable({
       "bJQueryUI": true,
        "sScrollX": "100%",
        "aLengthMenu": [[5, 15, 50, 100], [5, 15, 50, "l00"]],
        "iDisplayLength": 10,
         "sPaginationType": "full_numbers",
        "sDom": '<"top"if>rt<"bottom"lp><"clear">'

    }).columnFilter({"sPlaceHolder":"head :before",
    "aoColumns": [{ "type": "text" }, { "type": "text" }, null, null, null, null, { "type": "text" }, null, { "type": "text" }, { "type": "text" }, { "type": "text" },
Run Code Online (Sandbox Code Playgroud)

我怎样才能把它放在桌子的顶部?

jquery datatables

18
推荐指数
6
解决办法
8万
查看次数

标签 统计

datatables ×1

jquery ×1