Using DTOptionsBuilder to Hide Search Box
I can't seem to hide the search field using DTOptionsBuilder. I came across .withOption('lengthChange', false) to remove the length change dropdown but I also want to hide the search field. Any clues?
There are several way to remove the search box.
- Add the option
bFilterto false:DTOptionsBuilder.newOptions().withOption('bFilter', false) - Set the dom (remove the
f):DTOptionsBuilder.newOptions().withDOM('lrtip)
Thanks - that solved it!
Also, one quick question - is the bFilter option mentioned somewhere in the docs? I can't seem to find any trace of it so I'm wondering whether I'm looking in the wrong place.
It's in the legacy doc and it's still usable in v1.10+. Don't know if it's going to disappear later...
Appreciate the tip!