我想使用DataTables的过滤功能,但不想使用他们的搜索框。
In their docs bFilter 下显示:
Note that if you wish to use filtering in DataTables this must remain 'true' - to remove the default filtering input box and retain filtering abilities, please use
此后句子不完整。
我尝试过:
var oTable = $('#sortable').dataTable({
'bPaginate':false,
'bInfo':false,
'bFilter': true // displays Search box, setting false removes filter ability all together
});
$('#Accumulate').click(function(){
oTable.fnFilter("Accumulate");
});
最佳答案
您还可以使用 css 类隐藏
<style type="text/css">
.dataTables_filter {
display: none;
}
</style>
关于jquery - 过滤 dataTables.net,不包含过滤框输入,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9954510/