jQuery DataTables: hide search bar

后端 未结 4 1288
悲哀的现实
悲哀的现实 2021-02-14 13:33

I seem not able to hide DataTables default search bar. So far, I have tried solution from this thread, but setting bFilter:false disables filtering entirely, so my

4条回答
  •  一生所求
    2021-02-14 13:59

    You need to adjust sDom attribute of your DataTable accordingly: let table = $('#mytable').DataTable({sDom: 'lrtip'}); That's supposed to hide search box without disabling filtering feature. Also, you might want to check out official reference doc regarding the subject.

提交回复
热议问题