Can we change the location of the default search box?
Can we change the location of the default search box?
SKC
Posts: 33Questions: 10Answers: 0
By default the search box is positioned at the top-right corner of the DataTable.
I have 2 questions :
- is there a way to change it's default location?
- Can we disable or hide the search box?
Thank You.
This discussion has been closed.
Answers
Yes to both - the
dom
option is the way for both of them. If you don't want the search box remove thef
option from the string. If you want it else where, move it in the string. You may need to use some CSS as well to float it to the correct place.Allan
Thanks for the reply.
So as per my understanding based on your comment I should write the code as follows :
For CSS, can you provide a small sample code to show how to select the Button and move it some place else?
It really depends what you want, but it might be as simple as:
Allan