Hide the seach field
Hide the seach field
![carrarachristophe](https://secure.gravatar.com/avatar/016266902c3251f2fe0b686092511100/?default=https%3A%2F%2Fvanillicon.com%2F016266902c3251f2fe0b686092511100_200.png&rating=g&size=120)
in DataTables 2
Good morning,
Following the upgrade to DT2, I am replacing the DOM by layout.
It works fine except that I am unable to hide the seach field.
I tried search: false
but it does not work.
Any idea on how I can do that?
This question has an accepted answers - jump to answer
Answers
The
layout
docs show the default settings and how to remove the unneeded elements. For exampletopEnd: null
to remove the search input.Kevin
Thanks Kevin!
I saw that page before posting but I misunderstood it.
I understand now that
topEnd: null
removes the default value, andtopEnd: 'info'
for example overrides the default value.Spot on![:) :)](https://datatables.net/forums/resources/emoji/smile.png)