Type settings sDom to "flrtip". That will put the filter before the display length menu. If that fails then you'll need to modify the CSS slightly - probably just a float issue if so.
There is no way to enter an element with a specific ID using sDom (as indicated by the documentation - if implicitly, rather than explicitly, since it doesn't document how to give an element an ID :-) ). If you really wanted an ID, you could assign a class using sDom, and then once the DataTable has finished it's initialisation, use a single jQuery expression to add an ID.
Also, it's probably worth having a look at the example of how to use sDom: http://datatables.net/examples/basic_init/dom.html
Regards,
Allan
Ps. Don't hesitate to open a new thread with your questions, rather than dragging up an old thread from May :-)
Replies
It might even be possible to do with the default sDom settings and just move it around with CSS :-)
Allan
Per
Type settings sDom to "flrtip". That will put the filter before the display length menu. If that fails then you'll need to modify the CSS slightly - probably just a float issue if so.
Allan
How do I instruct DataTables to put the Search box in the element with id="TableViewOptions" ?
# < and > - div elements
# <"class" and > - div with a class
relatively makes little sense - what do you put in place of "and?" or is that part required? I don't get it.
There is no way to enter an element with a specific ID using sDom (as indicated by the documentation - if implicitly, rather than explicitly, since it doesn't document how to give an element an ID :-) ). If you really wanted an ID, you could assign a class using sDom, and then once the DataTable has finished it's initialisation, use a single jQuery expression to add an ID.
Also, it's probably worth having a look at the example of how to use sDom: http://datatables.net/examples/basic_init/dom.html
Regards,
Allan
Ps. Don't hesitate to open a new thread with your questions, rather than dragging up an old thread from May :-)