How do I set the size of the Search box?
How do I set the size of the Search box?
Dagoth
Posts: 4Questions: 1Answers: 0
I apologize if this has been answered already but I can't seem to find anything related to setting the size of the search box, the default one is too small and i want the width to be bigger.
This discussion has been closed.
Answers
https://datatables.net/forums/discussion/comment/169090/#Comment_169090
That script you wrote doesn't work for me unfortunately.
I am not going to write your code, sorry. Unless you are using Bootstrap 3 you will need to make modifications. You can use your browser's inspector and figure out what changes need to be made. If that doesn't work, post a test case as per the forum rules.
See if this answer helps:
https://datatables.net/forums/discussion/comment/168011/#Comment_168011
If not then minimally let us know the environment you have, ie, using standard Datatables styling, Bootstrap or other styling framework. Better yet build a simple example of what you have so we can provide a better answer.
https://datatables.net/manual/tech-notes/10#How-to-provide-a-test-case
Kevin
I'm using the Bootstrap 4 styling for the datatable, I basically want it so that the search filter is on the left and length changer is on the right, I also want the search filter to be max width possible.
You can use
dom
to move the elements around. If that doesn't resolve the issue, please post a test case as Kevin requested.Colin
nvm, I got it, basically to put search filter on left and length selector on right, you've gotta add the dom options like this (if using bootstrap 4):
then place this in CSS:
to set width of filter use this:
Hope this helps someone!