数据表添加更多选项?

时间:2014-07-20 21:31:48

标签: jquery jquery-datatables

您好我试图让jquery DataTables使用更多的optins,我有这个:

  <script type="text/javascript">
    $(document).ready(function(){
    $('#example').dataTable()
    .columnFilter({
    aoColumns: [ { type: "select", values: [ 'Gecko', 'Trident', 'KHTML', 'Misc', 'Presto', 'Webkit', 'Tasman']  },
                { type: "text" },
                 null,
                { type: "number" }
                    ],
    });
    });
    </script>

我想添加这些选项,但无法确定放置它们的位置:

"iDisplayLength": 50 ,
"sPaginationType": "full_numbers",
"aaSorting": [[1, 'desc']]
});

1 个答案:

答案 0 :(得分:0)

$('#example').dataTable({
    "iDisplayLength": 50,
    "sPaginationType": "full_numbers",
    "aaSorting": [[1, 'desc']]
}).columnFilter({....